VRBL-INV-PEPPOL-PINT-118
Basic Info
| Rule | The Allowance Group must have an Allowance Amount. |
| Context |
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
|
| Pattern | vrbl-invoice-peppol-pint |
| Severity | fatal |
Implementation
(
boolean(cbc:Amount)
and
not(boolean(/ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']/cbc:Amount))
)
or
boolean(/ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']/cbc:Amount)