edit_journal_entry
Modify an existing journal entry by updating date, memo, doc_number, or lines. Add, update, or delete lines with automatic debit-credit validation.
Instructions
Modify an existing journal entry. Can update date, memo, doc_number, and/or lines. For lines: provide line_id to update existing line, omit line_id to add new line, set delete=true to remove a line. Validates debits=credits before saving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Journal entry ID to edit | |
| txn_date | No | New transaction date in YYYY-MM-DD format (optional) | |
| memo | No | New private memo (optional) | |
| doc_number | No | New journal number (optional) | |
| 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) |