How to fix BR-AG-08
For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IPSI", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "IPSI" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119).
What this rule checks
For each distinct IPSI rate, cbc:TaxableAmount must equal Σ line net amounts + Σ charges − Σ allowances for items at that same IPSI rate.
Referenced business terms
This rule references the following EN 16931 business terms. Click through for the full definition, the UBL XPath and the cardinality.
How to fix it
Recalculate cbc:TaxableAmount in each IPSI cac:TaxSubtotal to match the sum of BT-131 + BT-99 − BT-92 filtered by category M and the matching cbc:Percent.
Related rules
Validate your invoice
Upload your corrected invoice to check it passes BR-AG-08 and all other EN 16931 and Peppol BIS 3.0 rules. Free, instant, no signup.