BR-AF-09: The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code…
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-AF-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IGIC" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119).
(abs(xs:decimal(../cbc:TaxAmount)) - 1 < round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 ) and (abs(xs:decimal(../cbc:TaxAmount)) + 1 > round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 )BR-AF-09 is a fatal rule in the business layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected. It refers to BT-117, BG-23, BT-118, BT-116, BT-119.
What this rule requires
In UBL, this fatal rule applies to a VAT breakdown (cac:TaxSubtotal) whose VAT category code (cbc:ID) is 'L' (IGIC) and whose tax scheme is VAT. The VAT category tax amount (cbc:TaxAmount, BT-117) must be close to the VAT category taxable amount (cbc:TaxableAmount, BT-116) multiplied by the VAT category rate (cbc:Percent, BT-119) divided by 100: the test accepts a difference of less than 1 currency unit from the result rounded to two decimal places. The message says the amounts shall be equal, but the UBL test allows this tolerance. In CII the test is always true, so this rule does not reject CII documents.
How to fix
For UBL, in the failing cac:TaxSubtotal with cac:TaxCategory/cbc:ID = 'L' and cac:TaxScheme/cbc:ID = 'VAT', set ../cbc:TaxAmount to ../cbc:TaxableAmount multiplied by cbc:Percent divided by 100, rounded to two decimal places; a difference of less than 1 currency unit is accepted. Check that cbc:TaxableAmount and cbc:Percent are present and numeric. No change is needed for CII because the test evaluates to true.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to BR-AF-09.
Validate an invoice against these rules · All release changes