VRBL-INV-PEPPOL-PINT-125

Basic Info

Rule Each Invoice Line Invoice Line Allowance Group must have a Invoice Line Allowance Reason or a Invoice Line Allowance Reason Code.
Context /ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
Pattern vrbl-invoice-peppol-pint
Severity fatal

Implementation

(
	boolean(cbc:AllowanceChargeReason)
	or
	boolean(cbc:AllowanceChargeReasonCode)
)
or
not(boolean(/ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']))