IBR-066-OM

[IBR-066-OM] - TAX category tax amount in accounting currency (IBT-190), TAX category code for tax category tax amount in accounting currency (IBT-192) and TAX category rate for tax category tax amount in accounting currency (IBT-193) must be provided when Invoice currency code (IBT-005) is not equal to 'OMR' and at least one TAX category code (IBT-118) is equal to 'S'.

About

ID
IBR-066-OM
Flag
fatal
Context
ubl:Invoice | cn:CreditNote
Test
not($invoiceCurrency != 'OMR' and $doc//cac:TaxCategory/cbc:ID = 'S') or exists( $doc/cac:TaxTotal[cbc:TaxAmount/@currencyID = $taxCurrency] /cac:TaxSubtotal[ cbc:TaxAmount/@currencyID = $taxCurrency and cac:TaxCategory/cbc:ID = 'S' and cbc:TaxAmount and cac:TaxCategory/cbc:Percent ] )