[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'.
IBR-066-OMubl:Invoice | cn:CreditNote 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 ] )