cancel_invoice
Cancels an issued invoice so it stays in records but no longer counts, only when the user explicitly cancels it. If already delivered to the customer, issue a credit note instead.
Instructions
Stornuje vydanou fakturu (zůstane v evidenci, nepočítá se). Jen pokud ji uživatel výslovně ruší.
Pokud už byla doručena odběrateli, nestornuj — vystav dobropis přes issue_credit_note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Číslo vydané faktury. | |
| reason | Yes | Důvod, např. 'chybná, nahrazena fakturou 2609001'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |