VRBL-INV-AE-1p0-2
Basic Info
| Rule | The Charge Tax ID used for VAT must exist within the Charge Group. |
| Context |
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
|
| Pattern | vrbl-invoice-AE-1p0 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cac:TaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID
|
| displayName_probe | = |
%{cac:TaxCategory/cbc:ID} used for VAT
|
Implementation
boolean(cac:TaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID)