VRBL-INV-AE-1p0-7

Basic Info

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

Implementation

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