VRBL-INV-PEPPOL-PINT-126

Basic Info

Rule The Invoice Line Charge Group must have an Invoice Line Charge Amount.
Context /ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
Pattern vrbl-invoice-peppol-pint
Severity fatal

Implementation

boolean(cbc:Amount)
or
not(boolean(/ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']))