Set invoice defaults
set_invoice_defaultsSet the tenant defaults for new invoices: payment term in days and IVA rate (plazo de pago por defecto / tipo de IVA por defecto). Pure data storage: contix does not judge whether a term or rate is fiscally correct. Pass only the field you want to change. Returns the updated payment term, IVA rate and retención field visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax_rate | No | default IVA percentage, e.g. 21 | |
| payment_days | No | days until due date; 0 = due on issue (contado) | |
| hide_retention | No | true hides the IRPF retention field (retención) in the web forms; display only, a rate above 0 always stays visible. The user decides, contix never derives it from the legal form. |