# BR-100-GST-SG

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

> Total Amount including GST in SGD must be numeric and have maximum of 2 decimals

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `cac:AdditionalDocumentReference[cbc:DocumentTypeCode]`
- Test: `(cbc:DocumentTypeCode='sgdtotal-incl-gst' and cbc:DocumentDescription castable as xs:decimal and string-length(substring-after(cbc:DocumentDescription,'.'))<=2) or cbc:DocumentTypeCode != 'sgdtotal-incl-gst'`

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