m3_delete_invoice
Delete an invoice by ID and year. Fails if dependent records such as stock movements exist, preserving data integrity.
Instructions
Delete an invoice by ID and year. Fails if the invoice has dependent records (e.g. stock movements).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice record ID | |
| type | Yes | Invoice type | |
| year | Yes | Accounting year |