# BR-CO-14-GST-SG

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

> Invoice total GST amount (BT-110-GST) = Σ GST category tax amount (BT-117-GST).

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `/ubl:Invoice/cac:TaxTotal | /cn:CreditNote/cac:TaxTotal`
- Test: `(round(xs:decimal(child::cbc:TaxAmount) * 10 * 10) div 100 = round((sum(cac:TaxSubtotal/xs:decimal(cbc:TaxAmount)) * 10 * 10)) div 100) or not(cac:TaxSubtotal)`

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