BR-B-02: An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[BR-B-02]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95, BT-118 or BT-102) is “Split payment" shall not contain an invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95, BT-118 or BT-102) is “Standard rated”.
((cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='B' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='B' or //cac:ClassifiedTaxCategory/cbc:ID = 'B') and (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='S' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='S' or //cac:ClassifiedTaxCategory/cbc:ID = 'S'))) or (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='B' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='B' or //cac:ClassifiedTaxCategory/cbc:ID = 'B'))BR-B-02 is a fatal rule in the business layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected. It refers to BG-25, BG-20, BG-21, BT-151, BT-95, BT-118, BT-102.
What this rule requires
The rule forbids a UBL invoice or credit note from containing both VAT category code B (Split payment) and VAT category code S (Standard rated) in any of these places: cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID (VAT breakdown), cac:AllowanceCharge/cac:TaxCategory/cbc:ID (document level allowance/charge), or //cac:ClassifiedTaxCategory/cbc:ID (invoice line). The test fails if at least one of those elements has B and at least one has S, regardless of how many other codes are present.
How to fix
Check the VAT category codes in cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID, cac:AllowanceCharge/cac:TaxCategory/cbc:ID, and //cac:ClassifiedTaxCategory/cbc:ID. Ensure the invoice does not contain both B and S: if the invoice is intended to be split payment, change all S values to B; if it is intended to be standard rated, change all B values to S. If only a specific line or allowance is incorrect, correct that value so that one of the two codes no longer appears anywhere in the invoice.
Guidance on this rule. The original text above is authoritative.
Where to go next
BR-B-02 changed in 1 published Peppol BIS Billing UBL release comparison:
- BR-B-02 in 3.0.20 → 3.0.21: Test expression rewritten
Validate an invoice against these rules · All release changes