VRBL-INV-SG-1p4-44
Basic Info
| Rule | An Invoice that contains Invoice Line Tax ID used for GST = 'VRBL:SG:NG', shall not contain an Invoice line (BG-25) where the Invoiced item GST category code (BT-151-GST) is not "VRBL:SG:NG". |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-sg-1p4 |
| Severity | fatal |
Implementation
not(
/ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'GST']/cbc:ID = 'VRBL:SG:NG'
)
or
(
count(/ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'GST' and cbc:ID != 'VRBL:SG:NG']) = 0
)