Hi There,
I am creating purchase invoice of an existing Purchase order via the following API.
Purchase invoice is created via API and connection has been made with the existing Purhcase Order But Status of Purchase order is still “To Receive and Bill” . It should be “To Recieve” .
This flow is working fine when I use UI to create Purchase Invoice.
API: {{api_hostname}}/api/resource/Purchase%20Invoice
body:
{
“purchase_order”: “PUR-ORD-2024-00025”,
“supplier”: “Ajooni Biotech Limited”,
“bill_no”:“AASRFGHJKL”,
“docstatus”: 1,
“items”: [
{
“item_code”: “AFABS11P50”,
“qty”: 10,
“rate”: 1000.0,
“purchase_order”: “PUR-ORD-2024-00025”
}
]
}
attached screenshot showing status with purchase invoice in connection and purchase invoice is submitted.