VRBL-INV-PH-1p0-27

Basic Info

Rule Within a Withholding Tax, every Withholding Tax Subtotal Group must have the same Withholding Tax Subtotal Tax ID.
Context /ubl:Invoice/cac:WithholdingTaxTotal/cac:TaxSubtotal
Pattern vrbl-invoice-ph-1p0
Severity fatal

Implementation

not(boolean(cac:TaxCategory/cbc:ID)) or not(boolean(../cac:TaxSubtotal[1]/cac:TaxCategory/cbc:ID)) or normalize-space(cac:TaxCategory/cbc:ID) = normalize-space(../cac:TaxSubtotal[1]/cac:TaxCategory/cbc:ID)