All error codes › BR-AG-06
BR-AG-06 – IPSI: wrong VAT rate on an allowance
Erroren16931
What the rule says
In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" the Document level allowance VAT rate (BT-96) shall be 0 (zero) or greater than zero.
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Test (XPath):
(cbc:Percent) >= 0
Related rules
BR-AG-01IPSI: VAT breakdown for this category missingBR-AG-02IPSI: seller VAT identifier missingBR-AG-03IPSI: seller VAT identifier missing (allowance)BR-AG-04IPSI: seller VAT identifier missing (charge)BR-AG-05IPSI: wrong VAT rate on a lineBR-AG-07IPSI: wrong VAT rate on a chargeBR-AG-08IPSI: wrong taxable amount in the VAT breakdownBR-AG-09IPSI: wrong VAT amount in the VAT breakdownBR-AG-10IPSI: exemption reason missing or not allowed