edit_sales_receipt
Modify an existing sales receipt by updating date, memo, deposit account, department, or lines. Add, update, or delete line items.
Instructions
Modify an existing sales receipt. Can update date, memo, deposit account, department, and/or lines. For lines: provide line_id to update existing line, omit line_id to add new line (requires item_name), set delete=true to remove.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Sales receipt ID to edit | |
| txn_date | No | New transaction date in YYYY-MM-DD format (optional) | |
| memo | No | New private memo (optional) | |
| deposit_to_account | No | New deposit account name/number (Bank account) | |
| department_name | No | Header-level department/location name (auto-resolved to ID) | |
| lines | No | Line modifications. Provide line_id to update existing line, omit to add new line. | |
| draft | No | If true, validate and show preview without saving (default: true) |