VRBL-INV-HU-1p0-9

Basic Info

Rule When Reduced Tax Subtotal Tax ID is O, the Reduced Tax Subtotal Category Exemption Reason Code and the Reduced Tax Subtotal Category Exemption Reason must be provided.
Context /ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:ReducedTotals/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory
Pattern vrbl-invoice-hu-1p0
Severity fatal

Implementation

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