Rules / ALIGNED-IBRP-S-09
The VAT category tax amount in a VAT breakdown where VAT category code is "Standard rated" must equal the VAT category taxable amount multiplied by the VAT category rate
The VAT category tax amount (ibt-117) in a VAT breakdown (ibg-23) where VAT category code (ibt-118) is "Standard rated" must equal the VAT category taxable amount (ibt-116) multiplied by the VAT category rate (ibt-119).
Fails
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="AED">7500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="AED">380.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>5</cbc:Percent>
</cac:TaxCategory>
</cac:TaxSubtotal>
Fix
Recalculate cbc:TaxAmount in this standard-rated VAT breakdown as cbc:TaxableAmount × cbc:Percent ÷ 100, rounded to 2 decimals: 7500.00 at 5 gives 375.00. It may differ by 0.02 at most. Fix the VAT amount, then the invoice total VAT.
Schematron
- Context
/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']- Test
(cbc:Percent castable as xs:decimal and ../cbc:TaxableAmount castable as xs:decimal and ../cbc:TaxAmount castable as xs:decimal) and u:slack(abs(xs:decimal(../cbc:TaxAmount)) , round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 ,0.02 )
Official text: The VAT category tax amount (ibt-117) in a VAT breakdown (ibg-23) where VAT category code (ibt-118) is "Standard rated" MUST equal the VAT category taxable amount (ibt-116) multiplied by the VAT category rate (ibt-119).