VRBL-INV-SG-1p4-21
Basic Info
| Rule | The Invoice Line Tax ID used for GST must exist within the Invoice Line Group. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-sg-1p4 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'GST']/cbc:ID
|
| displayName_probe | = |
%{cac:Item/cac:ClassifiedTaxCategory/cbc:ID} used for GST
|
Implementation
boolean(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'GST']/cbc:ID)