update_job_work_in_order
Update an existing job work order in TallyPrime by replacing item lines, party, order number, and narration, matched by date and voucher number. Resolves collisions to prevent altering the wrong voucher.
Instructions
Update an existing Job Work In Order in TallyPrime, replacing its item lines (and their component lists), party, order number, and narration. Same fields as create_job_work_in_order, 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 order's date in DD-MM-YYYY format | |
| items | Yes | One entry per finished item — replaces all existing lines. | |
| narration | No | Narration / description | |
| orderNumber | Yes | REQUIRED — the order reference shown as 'Order no.' in Tally's UI. | |
| partyLedger | Yes | Customer ledger name (the principal who is giving this job work order) | |
| voucherNumber | Yes | Exact voucher number of the job work order to update |