# BR-DEC-13-GST-SG

Source: https://xmlvalid.com/rules/BR-DEC-13-GST-SG

> The allowed maximum number of decimals for the Invoice total GST amount (IBT-110) is 2.

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode] and (string-length(substring-after(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode],'.'))<=2)) or (not(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode]))`

Validate a document against these rules: https://xmlvalid.com/validate
