IBR-097-OM

[IBR-097-OM] - If category is 'Z' in accounting currency, rate MUST be 0.

About

ID
IBR-097-OM
Flag
fatal
Context
ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal | cn:CreditNote/cac:TaxTotal/cac:TaxSubtotal
Test
not($taxCurrency != '' and $isTaxCurrency and $cat='O') or (cac:TaxCategory/cbc:Percent castable as xs:decimal and xs:decimal(cac:TaxCategory/cbc:Percent) = 0)