VRBL-INV-PH-1p0-13

Basic Info

Rule When the Invoice Subtype Code is CAS, the Allowance Charge Group expects one Allowance Charge Tax Category Group.
Context /ubl:Invoice/cac:AllowanceCharge
Pattern vrbl-invoice-ph-1p0
Severity fatal

Used Template: CountEqualsOne

Parameter Value
probe = cac:TaxCategory

Implementation

(
	not(normalize-space(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode) = 'VRBL:PH:CAS')
)
or
(
	count(cac:TaxCategory) = 1
)