ALIGNED-IBRP-E-01-OM

[ALIGNED-IBRP-E-01-OM] - An Invoice that contains an Invoice line (IBG-25), a Document level allowance (IBG-20) or a Document level charge (IBG-21) where the VAT category code (IBT-151, IBT-95 or IBT-102) is "E" MUST contain exactly one VAT breakdown (IBG-23) with the VAT category code (IBT-118) equal to "E" unless invoice transaction type is a simplified tax invoice (X1XXXXXXXXXXXXXXXXXX), where a VAT breakdown is not required if VAT category code (IBT-118) equal to "E".

About

ID
ALIGNED-IBRP-E-01-OM
Flag
fatal
Context
ubl:Invoice | cn:CreditNote
Test
not( $lines[cac:Item/cac:ClassifiedTaxCategory/cbc:ID='E'] or $allowances[cac:TaxCategory/cbc:ID='E'] or $charges[cac:TaxCategory/cbc:ID='E'] ) or ( (not($isSimplified) and count($doc/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID='E']) = 1) or ($isSimplified and count($doc/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID='E']) <= 1) )