VRBL-INV-SG-1p4-41
Basic Info
| Rule | An Invoice that contains Document Level Charge Tax Category Code used for GST = 'VRBL:SG:NG', shall not contain the Seller Tax Representative Tax ID used for GST ID, the Seller Tax ID used for GST ID or the Buyer Tax ID used for GST ID. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-sg-1p4 |
| Severity | fatal |
Implementation
not(
cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'GST']/cbc:ID = 'VRBL:SG:NG'
)
or
(
not(boolean(/ubl:Invoice/cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'GST']/cbc:CompanyID))
and
not(boolean(/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'GST']/cbc:CompanyID))
and
not(boolean(/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'GST']/cbc:CompanyID))
)