FACTURKITE by CairnKit
Plan: Free (3/3 AI)
ERROR INTEGER-CENT ARITHMETIC BT-117

BR-CO-17: VAT category tax amount calculation (BT-117)

Each VAT breakdown band's tax amount (BT-117) must equal its taxable amount (BT-116) multiplied by its VAT rate (BT-119) divided by 100.

RULE ID
BR-CO-17
BT / BG ELEMENT
BT-117
STANDARD
EN 16931-1
NORMALIZED FIELD
vatBreakdown.0.taxCents
SEVERITY
ERROR

Why BR-CO-17 Fails

Rounding each line item's VAT individually instead of applying the rate to the grouped taxable base produces a mismatch on BT-117.

How to Fix BR-CO-17

  1. Multiply each BG-23 band's BT-116 taxable base in cents by BT-119 / 100 using half-away-from-zero rounding.
  2. Update BT-117 and sum all bands into BT-110.
BEFORE · FAILS BR-CO-17 FAIL
<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="EUR">100.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="EUR">18.99</cbc:TaxAmount>
</cac:TaxSubtotal>
AFTER · PASSES BR-CO-17 PASS
<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="EUR">100.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="EUR">19.00</cbc:TaxAmount>
</cac:TaxSubtotal>
VERIFY BR-CO-17 IN CI / TERMINAL
npx @cairnkithq/facturkite-cli validate invoice.xml --profile xrechnung-ubl --format sarif
QUICK REFERENCE

Common questions about BR-CO-17.

What causes BR-CO-17 (BT-117) validation errors?

Rounding each line item's VAT individually instead of applying the rate to the grouped taxable base produces a mismatch on BT-117.

Can FacturKite check BR-CO-17 automatically without creating an account?

Yes. Paste your XML or upload a Hybrid PDF in FacturKite's free workbench or run npx @cairnkithq/facturkite-cli validate invoice.xml locally to verify BR-CO-17 deterministically.

WORKSPACE & LICENSING

Plans & Activate License

WORKSPACE
ws_loading
ACTIVE PLAN
Free
AI QUOTA
3 / 3 Free

Secure checkout & 14-day money-back guarantee handled by Freemius, Inc. (Official Merchant of Record). CairnKit never sees or stores your payment card details.