VRBL-INV-PH-1p0-9

Basic Info

Rule When the Invoice Subtype Code is CAS, the Item Information expects one Line Tax Information.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-ph-1p0
Severity fatal

Used Template: CountEqualsOne

Parameter Value
probe = cac:ClassifiedTaxCategory

Implementation

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