VRBL-INV-CORE-41

Basic Info

Rule The Invoice Tax Amount and the Accounting Tax Amount must all both positive, or all negative.
Context /ubl:Invoice
Pattern vrbl-invoice-core
Severity fatal

Implementation

not(
	boolean(cac:TaxTotal[cbc:TaxAmount < 0])
	and
	boolean(cac:TaxTotal[cbc:TaxAmount > 0])
)