update_delivery_note
Update an existing TallyPrime delivery note, replacing item lines, party, and narration. Matches by date and voucher number, and refuses if another voucher type shares that number to avoid corrupting the wrong voucher.
Instructions
Update an existing Delivery Note in TallyPrime, replacing its item lines, party, and narration. Same fields as create_delivery_note, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Existing delivery note's date in DD-MM-YYYY format | |
| items | Yes | One entry per line — replaces all existing lines. | |
| buyerTrn | No | The buyer's TRN on this delivery note — same voucher-level field as create_delivery_note's buyerTrn. | |
| narration | No | Narration / description | |
| reference | No | Free-text reference for this delivery note. | |
| buyerState | No | The buyer's Emirate/state on this delivery note's Party Details. | |
| partyLedger | Yes | Customer ledger name | |
| buyerCountry | No | The buyer's country on this delivery note's Party Details. | |
| referenceDate | No | Date for the reference above, in DD-MM-YYYY format. | |
| voucherNumber | Yes | Exact voucher number of the delivery note to update | |
| placeOfSupplyCountry | No | UAE VAT Place of Supply Country for this delivery note. | |
| placeOfSupplyEmirate | No | UAE VAT Place of Supply Emirate for this delivery note. |