update_purchase_order
Update existing purchase orders in TallyPrime by replacing item lines, party, order number, narration, and other fields. Specify the exact voucher number to locate and modify the target order.
Instructions
Update an existing Purchase Order in TallyPrime, replacing its item lines, party, order number, and narration. Same fields as create_purchase_order, plus voucherNumber. Same matching/collision caveats as update_sales_order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Existing order's date in DD-MM-YYYY format | |
| items | Yes | One entry per line — replaces all existing lines. | |
| narration | No | Narration / description | |
| orderNumber | Yes | REQUIRED — the order reference shown as 'Order no.' in Tally's UI. | |
| partyLedger | Yes | Supplier ledger name | |
| voucherNumber | Yes | Exact voucher number of the purchase order to update |