Validate Invoice Data
validate_invoice_dataValidates extracted invoice totals, item totals, dates, and foreign-currency exchange rate guardrails to ensure data integrity before booking.
Instructions
Validate extracted invoice totals, item totals, dates, and foreign-currency EUR-rate guardrails before booking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Items with at least {total_net_price, vat_rate_dropdown?} each. | |
| vat_no | No | Supplier VAT number (KMKR, e.g. EE102809963) | |
| due_date | No | Due date (YYYY-MM-DD) | |
| reg_code | No | Supplier registry code (registrikood, 8-digit Estonian business code) | |
| total_net | Yes | Invoice total net amount | |
| total_vat | Yes | Invoice total VAT amount | |
| total_gross | Yes | Invoice total gross amount | |
| invoice_date | No | Invoice date (YYYY-MM-DD) | |
| currency_rate | No | Planned exchange rate (EUR per 1 foreign unit) | |
| base_net_price | No | Planned EUR-equivalent net amount | |
| cl_currencies_id | No | Invoice currency (default EUR) |