aligned-ibrp-lvg-09
The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "LVG" MUST equal the tax category taxable amount (ibt-116) multiplied by the tax category rate (ibt-119).
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element
/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'LVG'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
u:slack(abs(xs:decimal(../cbc:TaxAmount)) , round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal((cbc:Percent, 0)[1]) div 100)) * 10 * 10) div 100 ,0.02 )
Checked with PINT MY Invoice, PINT MY Credit Note