View source | View content page | Page history | Printable version   

Projects:Allow comma separator/Specifications

Allow comma ',' as decimal separator for numbers - Functional Specifications

Overview

Currently the application can work with ',' (comma) or '.' (dot) as decimal separator.

But Openbravo ERP implementation of dojo RealNumber does not permit to configure it, so, you will obtain and "invalid number format" error if you try to insert a number separated with a ','. but database accepts it (Oracle).

The aim of this project is define a decimal separator for javascript and use it.


New specifications for decimal and grouping separators

The decimal and grouping (thousands) separator will be specified in openbravo.properties.

# decimal and grouping separator format
separatorFormat.grouping=,
separatorFormat.decimal=.

The format mask of every format will still remain in format.xml, but the decimal and grouping information will disappear from format.xml.

<Formats>
  ...
  <Number name="qtyEdition" formatOutput="#,##0.###" formatInternal="#,##0.###" />
  ...
</Formats>

Retrieved from "http://wiki.openbravo.com/wiki/Projects:Allow_comma_separator/Specifications"

This page has been accessed 4,280 times. This page was last modified on 8 June 2012, at 05:26. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.