Message

If charge is present on document level, total charge must be stated.

Context
ubl:CreditNote
Test
cac:LegalMonetaryTotal/cbc:ChargeTotalAmount or not(cac:AllowanceCharge[cbc:ChargeIndicator = 'true'])