# BR-DEC-28

Source: https://xmlvalid.com/rules/BR-DEC-28

> The allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2.

- Level: error
- Rule sets: EN 16931 rules (UBL) 1.3.17, EN 16931 rules 1.3.16 (UBL), EXTENDED-CTC-FR rules (UBL) 1.4.0.04, Romanian RO e-Factura rules (UBL) 1.0.9
- Context: `//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]`
- Test: `string-length(substring-after(cbc:BaseAmount,'.'))<=2`

> The allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2.

- Level: error
- Rule sets: EN 16931 rules (CII) 1.3.17, EN 16931 rules 1.3.16 (CII), EXTENDED-CTC-FR rules (CII) 1.4.0.04, Factur-X EN 16931 rules 1.09.2, Factur-X EXTENDED rules 1.09.2
- Context: `//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']`
- Test: `string-length(substring-after(../ram:BasisAmount,'.'))<=2`

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