VRBL-INV-PEPPOL-PINT-AUNZ-1p0-73

Basic Info

Rule Either both or neither the Document Level Charge Percentage and the Document Level Charge Base Amount must be provided.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
Pattern vrbl-invoice-peppol-pint-au-nz
Severity fatal

Implementation

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