Hi All,
I am trying to generate a sales invoice against a sales order. How can I link a sales invoice to a sales order and generate against a sales order id that I just created
I am currently using this endpoint
/api/resource/Sales%20Invoice
I have passed this request while generating a sales invoice but I don’t know if it is generating a sales invoice against a sales order that I have created
{
“doctype”: “Sales Order”,
“customer”: “Test User”,
“title”: “SO-01”,
“contact_display”: “Test User”,
“currency”: “USD”,
“conversion_rate”: “1.0”,
“selling_price_list”: “Standard Selling”,
“naming_series”: "SD-0 ",
“order_type”: “Sales”,
“status”: “Paid”,
“delivery_date”: “2022-03-27”,
“submit_on_creation”: “1”,
“items”: [
{
“item_code”: “Camera”,
“item_name”: “Camera”,
“qty”: 1,
“rate”: “44.99”,
“doctype”: “Sales Order Item”,
“docstatus”: “1”
}
]
}