[ALIGNED-IBRP-Z-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 "Z" MUST contain in the VAT breakdown (IBG-23) exactly one VAT category code (IBT-118) equal with "Z" 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 "Z".
ALIGNED-IBRP-Z-01-OMubl:Invoice/cac:TaxTotal/cac:TaxSubtotal | cn:CreditNote/cac:TaxTotal/cac:TaxSubtotalnot( $lines[cac:Item/cac:ClassifiedTaxCategory/cbc:ID='Z'] or $allowances[cac:TaxCategory/cbc:ID='Z'] or $charges[cac:TaxCategory/cbc:ID='Z'] ) or ( (not($isSimplified) and count($doc/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID='Z']) = 1) or ($isSimplified and count($doc/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID='Z']) <= 1) )