# BR-DEC-01-SG

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

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

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

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