View source | Discuss this page | Page history | Printable version   

ERP 2.50:Developers Guide/Format xml

ERP 2.50:Developers Guide




Format.xml is a configuration file per Openbravo installation that allows you configure the format output for numeric values. It's used by the different numeric references in Application Dictionary, but also can be used in manual code. By default Openbravo ships a Format.xml.template that can be copied as it is without any modification.

Bulbgraph.png   If you are building Openbravo from sources, the setup-properties binary makes a copy of it for you.

Format.xml example

<?xml version="1.0" encoding="UTF-8" ?>
<!-- license -->
<!-- other formats -->
   <Number name="euroEdition"
       decimal="." grouping="," formatOutput="#0.00" formatInternal="#0.00" />
<!-- other formats -->


Application dictionary - format name mapping

AD Reference Output format
Decimal, Amount euroEdition
Quantity qtyEdition
Price priceEdition
Integer integerEdition
Number generalQtyEdition
Others numeric generalQtyEdition

Important Notes

ERP 2.50:Developers Guide/ | ERP 2.50:Developers Guide/Code Snippets

Retrieved from ""

This page has been accessed 14,501 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.