VRBL-INV-EN16931-M-54

Basic Info

Rule The Value added Tax Point Date and the Value added Invoice Period Description Code are mutually exclusive.
Context /ubl:Invoice
Pattern vrbl-invoice-en16931-ubl-model
Severity fatal

Implementation

(
	boolean(cbc:TaxPointDate) 
	and 
	not(boolean(cac:InvoicePeriod/cbc:DescriptionCode))
) 
or 
(
	not(boolean(cbc:TaxPointDate)) 
	and 
	boolean(cac:InvoicePeriod/cbc:DescriptionCode)
) 
or 
(
	not(boolean(cbc:TaxPointDate)) 
	and 
	not(boolean(cac:InvoicePeriod/cbc:DescriptionCode))
)