add_purchase_invoice
Create a purchase invoice draft for review and approval. Debits expense lines, credits the default bank or specified account, and does not book until approved.
Instructions
Create a purchase invoice as a DRAFT. It does not enter the ledger and gets no voucher number until a human reviews and approves it in Kitsas; this tool can never book money on its own. Expense lines are debited; the total is credited to the bank account unless credit_account says otherwise. Call suggest_account first so the supplier keeps landing on the same account it always has.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | ||
| lines | Yes | Expense lines: account (int), amount (euros as a string), description (optional) | |
| due_date | No | YYYY-MM-DD | |
| pdf_path | No | The original invoice, attached to the voucher | |
| reference | No | ||
| business_id | No | ||
| description | No | ||
| booking_date | Yes | YYYY-MM-DD, must be in an open fiscal year | |
| invoice_date | No | YYYY-MM-DD | |
| supplier_name | Yes | ||
| credit_account | No | Defaults to the bank account |