add_voucher_entry
Add a line item to an employee expense voucher before posting. Requires an expense or asset account, quantity, price, and optional notes for categories like meals or travel.
Instructions
Add a line item to an employee expense voucher.
The voucher must not be posted yet. Each entry is typically a separate expense category (meals, supplies, travel). Account must be EXPENSE or ASSET.
Args:
voucher_id: Voucher ID (e.g., "000001").
account: Expense account path (e.g.,
"Expenses:Meals & Entertainment").
description: Line item description.
quantity: Quantity as decimal string (e.g., "1").
price: Unit price as decimal string (e.g., "42.50").
taxtable: Optional taxtable name. Same semantics as
add_bill_entry.
tax_included: If true, price is gross; pretax extracted
at posting.
notes: Optional per-line notes (max 4096 bytes) — e.g.
receipt reference or attendee list.
action: Optional line-type label (GnuCash convention:
"Hours", "Material", "Project").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| price | Yes | ||
| action | No | ||
| account | Yes | ||
| quantity | Yes | ||
| taxtable | No | ||
| voucher_id | Yes | ||
| description | Yes | ||
| tax_included | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |