BR-CO-17 — Category tax amount is wrong (BT-117)
- Standard: EN16931
- Severity: fatal
- Business Terms: BT-117, BT-116, BT-119
Meaning
"VAT category tax amount" (BT-117) = "VAT category taxable amount" (BT-116) × ("VAT category rate" (BT-119) / 100), rounded to two decimals.
Possible causes
- BT-117 (TaxSubtotal/TaxAmount) was not rounded to two decimals.
- The rate BT-119 or the taxable base BT-116 in the breakdown does not match the amount.
How to fix it
- Compute BT-117 (cbc:TaxAmount) as BT-116 × BT-119 / 100 and round half-up to two decimals.
Affected fields
/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent
Example (invalid invoice)
invalid/BR-CO-17/ubl-inv-category-tax-mismatch.xml