I am trying to create Vendor Credit Note, which is nothing but Debit note in standard terms, it is showing me error of "Select the associated bill number or bill type.", there is no option to specify bills associated. Can some one help on this?
Here is the JSON sent
{"vendor_id":1004111000000129001,"vendor_credit_number":"DBN\/22-23\/000628","gst_treatment":"business_none","status":"Approved","date":"2022-10-04","exchange_rate":1,"sub_total":10.019999999999999573674358543939888477325439453125,"total":10.019999999999999573674358543939888477325439453125,"balance":0,"line_items":[{"item_id":1004111000000123007,"quantity":1,"unit":"NOS","rate":10,"bcy_rate":10,"name":"D\/0809","description":"FLAG","hsn_or_sac":"9988","tax_id":1004111000000123001,"tax_percentage":0,"tax_type":"gst"}],"reference_number":"JEDL\/22-23\/03126","notes":"Debit note imported from ExpandX ERP","bills_credited":[{"bill_id":1004111000000123020,"bill_number":"JEDL\/22-23\/03126","amount":10.019999999999999573674358543939888477325439453125}]}