invoice_issued_deduct_advance
Deduct an advance invoice from a tax document invoice to reduce the payable amount, applying the advance total as a credit.
Instructions
Deduct an advance invoice from a tax document invoice (Odpocet zaloh a ZDD).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Invoice ID | |
| kod | No | Invoice code (alternative to id) | |
| extra_fields | No | Deduction properties; 'castkaMen' defaults to the advance invoice's total | |
| advance_invoice_id | Yes | ID (or 'code:X') of the advance ('zalohova') invoice being deducted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |