VRBL-INV-IN-1p0-67

Basic Info

Rule If the Charge Group is used without setting Allowance Charge After Tax Indicator, the Legal Monetary Total Charge Total Amount must exist.
Context /ubl:Invoice/cac:LegalMonetaryTotal
Pattern vrbl-invoice-in-1p0
Severity fatal

Implementation

not(boolean(../cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true' and cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AllowanceChargeExtension/vrbl:AfterTaxIndicator!='true']))
or
boolean(cbc:AllowanceTotalAmount)