abraflexi_create_issued_invoice
WRITE: create an issued invoice (faktura-vydana) with line items in ABRA Flexi. The invoice is saved as a normal document with the next number of its series, and ABRA Flexi may account it automatically according to the settings of the chosen invoice type; this tool does NOT send it, mark it paid or e-mail it. Use dry_run first to see the computed totals and validation errors without saving. Find document_type_code with abraflexi_list_records (evidence typ-faktury-vydane) and customer_code with abraflexi_list_contacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Internal note (poznam). | |
| items | Yes | Line items. | |
| dry_run | No | true = only validate and show what would be saved, nothing is stored (recommended first). Default false = save. | |
| due_date | No | Due date (datSplat), default from the customer's payment terms. | |
| issue_date | No | Issue date (datVyst), default today. | |
| description | No | Invoice description (popis). | |
| currency_code | No | Currency code (mena), company currency when omitted. | |
| customer_code | Yes | Code (kod) of the customer in the address book. | |
| variable_symbol | No | Variable symbol (varSym), digits only. | |
| document_type_code | Yes | Code (kod) of the issued-invoice type, e.g. FAKTURA (evidence typ-faktury-vydane). |