VRBL-INV-HU-1p0-46

Basic Info

Rule When Invoiced Item Tax Category Code is O, the Tax Exemption Reason Code and the Tax Exemption Reason Text must be provided.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory
Pattern vrbl-invoice-hu-1p0
Severity fatal

Implementation

not(cbc:ID='O')
or(
	boolean(cbc:TaxExemptionReasonCode)
	and
	boolean(cbc:TaxExemptionReason)
)