All error codes › BR-S-09
BR-S-09 – VAT amount for a standard rate is wrong
Erroren16931applies to Romanian e-Factura
What the rule says
The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Standard rated" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119).
How to fix it
Taxable amount x rate / 100, rounded to 2 decimals.
UBL: cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: /*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Test (XPath):
(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 )
Related rules
BR-S-01Standard-rated items but no standard VAT breakdownBR-S-02Seller VAT ID required for standard-rated itemsBR-S-03Standard rated: seller VAT identifier missing (allowance)BR-S-04Standard rated: seller VAT identifier missing (charge)BR-S-05Standard rated: wrong VAT rate on a lineBR-S-06Standard rated: wrong VAT rate on an allowanceBR-S-07Standard rated: wrong VAT rate on a chargeBR-S-08Taxable amount for a VAT rate is wrongBR-S-10Standard rated: exemption reason missing or not allowed