BR-CIUS-PT-62
If Document Level Allowances (BG-20) is used, the Sum of allowances on document level (BT-107) shall be filled.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
cac:LegalMonetaryTotal
exists(/*/cac:AllowanceCharge[cbc:ChargeIndicator='false']) and not(cbc:AllowanceTotalAmount)
Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)