ALIGNED-IBRP-E-09-OM

[ALIGNED-IBRP-E-09-OM] - The VAT category tax amount (ibt-117) In a VAT breakdown (ibg-23) where the VAT category code (ibt-118) equals "E" MUST equal 0 (zero) unless invoice transaction type is a simplified tax invoice (X1XXXXXXXXXXXXXXXXXX), where a VAT category tax amount (ibt-117) I is not required if VAT category code (ibt-118) equal to "E".

About

ID
ALIGNED-IBRP-E-09-OM
Flag
fatal
Context
ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal | cn:CreditNote/cac:TaxTotal/cac:TaxSubtotal
Test
$isSimplified or not($vatCategory='E') or ( cbc:TaxAmount castable as xs:decimal and xs:decimal(cbc:TaxAmount) = 0 )