VRBL-INV-PEPPOL-PINT-118
Basic Info
|
Rule
|
The Document Level Allowances must have an Document Level 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)