update_physical_stock
Replace item lines and narration on an existing Physical Stock voucher in TallyPrime, matching by date and voucher number to keep stock counts accurate.
Instructions
Update an existing Physical Stock voucher in TallyPrime, replacing its counted item lines and narration. Same fields as create_physical_stock, 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 entry per counted stock item — replaces all existing lines. | |
| narration | No | Narration / description | |
| voucherNumber | Yes | Exact voucher number of the physical stock voucher to update |