VRBL-INV-AU-1p0-72

Basic Info

Rule Either both or neither the Allowance Multiplier Factor Numeric and the Allowance Base Amount must be provided.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
Pattern vrbl-invoice-au-1p0
Severity fatal

Implementation

not(
	boolean(cbc:MultiplierFactorNumeric) 
	or
	boolean(cbc:BaseAmount)
)
or
(
	boolean(cbc:MultiplierFactorNumeric)
	and
	boolean(cbc:BaseAmount)
)