# BR-DEC-05-SG

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

> The allowed maximum number of decimals for the Document level charge amount (IBT-099) is 2.

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]`
- Test: `string-length(substring-after(cbc:Amount,'.'))<=2`

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