VRBL-INV-PL-B2B-3-75

Basic Info

Rule If the Charge Group exists, the Legal Monetary Total Charge Total Amount After Tax must exist within the Legal Monetary Total Group.
Context /ubl:Invoice/cac:LegalMonetaryTotal
Pattern vrbl-invoice-pl-b2b-3p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:LegalMonetaryTotalExtension/vrbl:ChargeTotalAmountAfterTax

Implementation

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