View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help


How to change the price precision


The price precision defined by default in all currencies in Openbravo ERP is two. One of the most common changes when implementing Openbravo ERP in a customer, is to change this price precision because of the requirements of the project. This document tries to clarify the changes needed to perform this precision change.

Execution Steps

There are two main changes to perform the price precision change in Openbravo ERP. Through the UI the administrator has to change the currency precision.

How to change price precision.png

Once the change in currency is done, the rest of the changes are in Format configuration file. Here's how you do it.

Original lines:

<Number name="priceRelation" decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />

<Number name="priceEdition" decimal="." grouping="," formatOutput="#0.00" formatInternal="#0.00" />

If the customer wants always two decimals, and three or four dynamically depending on the number of decimals:

<Number name="priceRelation" decimal="." grouping="," formatOutput="#,##0.00##" formatInternal="#0.00##"/>

<Number name="priceEdition" decimal="." grouping="," formatOutput="#0.00##" formatInternal="#0.00##"/>

If the customer wants always four decimals:

<Number name="priceRelation" decimal="." grouping="," formatOutput="#,##0.0000" formatInternal="#0.0000" />

<Number name="priceEdition" decimal="." grouping="," formatOutput="#0.0000" formatInternal="#0.0000" />

ant compile.complete.deploy

After performing this steps, all the prices in Openbravo will be rounded to 4 decimals.

Retrieved from ""

This page has been accessed 2,735 times. This page was last modified on 27 November 2012, at 10:56. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.