VRBL-INV-PT-2p1-238

Basic Info

Rule The Invoice Line Price Allowance Charge Amount must be filled.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price
Pattern vrbl-invoice-pt-2p1
Severity fatal

Implementation

not(boolean(cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false'])) or boolean(cac:AllowanceCharge/cbc:Amount)