BR-CO-18
This id stands for 2 different rules, one per rule set below: Factur-X numbers its rules in each profile separately.
Why it fails
- The VAT total has no breakdown:
cac:TaxTotalholds only acbc:TaxAmountwithoutcac:TaxSubtotal(ram:ApplicableTradeTaxin the CII settlement).
How to fix it
Add a cac:TaxSubtotal per VAT category and rate, with its taxable amount, VAT amount, category and rate. An invoice without VAT still needs one, with category O, E or Z and a VAT amount of 0.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element
An Invoice shall at least have one VAT breakdown group (BG-23).
/ubl:Invoice | /cn:CreditNote
exists(cac:TaxTotal/cac:TaxSubtotal)
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
An Invoice shall at least have one VAT breakdown group (BG-23).
//ram:IncludedSupplyChainTradeLineItem
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax
Checked with EN 16931 Invoice (CII)
An Invoice shall at least have one VATBReakdown group (BG-23).
//ubl:Invoice | //cn:CreditNote
exists(cac:TaxTotal/cac:TaxSubtotal)
Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)
An Invoice shall at least have one VAT breakdown group (BG-23).
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement
ram:ApplicableTradeTax
Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL