VRBL-INV-IT-1p2-10
Basic Info
|
Rule
|
When a Invoice Line Group or a Allowance Charge Group with the Withholding Indicator set to true is provided, the Withholding Tax must exist within the Invoice. |
|
Context
|
/ubl:Invoice
|
|
Pattern
|
vrbl-invoice-it-1p2 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:WithholdingTaxTotal
|
Implementation
(
not(boolean(cac:InvoiceLine[string(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:WithholdingIndicator) = 'true']) or boolean(cac:AllowanceCharge[string(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AllowanceChargeExtension/vrbl:WithholdingIndicator) = 'true']))
)
or
(
boolean(cac:WithholdingTaxTotal)
)