VRBL-INV-PL-B2B-3-74
Basic Info
|
Rule
|
If the Allowance Group exists, the Legal Monetary Total Allowance 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:AllowanceTotalAmountAfterTax
|
Implementation
(
not(boolean(../cac:AllowanceCharge[string(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AllowanceChargeExtension/vrbl:AfterTaxIndicator) = 'true' and string(cbc:ChargeIndicator) = 'false']))
)
or
(
boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:LegalMonetaryTotalExtension/vrbl:AllowanceTotalAmountAfterTax)
)