update_material_in
Update an existing Material In voucher in TallyPrime by replacing its item lines and narration, matched by date and voucher number. Confirm the voucher number is unique first.
Instructions
Update an existing Material In voucher in TallyPrime, replacing its item lines and narration. Same fields as create_material_in, 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 voucher's date in DD-MM-YYYY format | |
| items | Yes | One or more stock items being received — replaces all existing lines. | |
| narration | No | Narration / description for the voucher | |
| partyLedger | Yes | Exact name of the job worker/party ledger this material is being received from | |
| voucherNumber | Yes | Exact voucher number of the voucher to update |