BR-CO-18

This id stands for 2 different rules, one per rule set below: Factur-X numbers its rules in each profile separately.

error: the document is invalid Peppol documentation ↗

Why it fails

  • The VAT total has no breakdown: cac:TaxTotal holds only a cbc:TaxAmount without cac:TaxSubtotal (ram:ApplicableTradeTax in 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

Message

An Invoice shall at least have one VAT breakdown group (BG-23).

Context
//ram:IncludedSupplyChainTradeLineItem
Test
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax

Checked with EN 16931 Invoice (CII)

Message

An Invoice shall at least have one VATBReakdown group (BG-23).

Context
//ubl:Invoice | //cn:CreditNote
Test
exists(cac:TaxTotal/cac:TaxSubtotal)

Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)

Message

An Invoice shall at least have one VAT breakdown group (BG-23).

Context
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement
Test
ram:ApplicableTradeTax

Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL