# BR-CO-15-GST-SG

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

> Invoice total amount with GST (BT-112-GST) = Invoice total amount without GST (BT-109-GST) + Invoice total GST amount (BT-110-GST).

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `every $Currency in cbc:DocumentCurrencyCode satisfies (count(//cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) eq 1) and (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxInclusiveAmount) = round( (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxExclusiveAmount) + cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) * 10 * 10) div 100)`

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