VRBL-INV-AE-1p0-8

Basic Info

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

Implementation

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