I'm interested in learning ERP; therefore, to choose compiere as my template step further. Yet after few tries, it aroused me a question about cost. The question is "How to avoid cost precision lost?" when developing modules. For I found out that may lose its precision when manipulating data. Does compiere apply any pattern or simply using BigDecimal to avoid such problem occurred?
I appreciate any reply, sincerely.
Arsene
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm interested in learning ERP; therefore, to choose compiere as my template step further. Yet after few tries, it aroused me a question about cost. The question is "How to avoid cost precision lost?" when developing modules. For I found out that may lose its precision when manipulating data. Does compiere apply any pattern or simply using BigDecimal to avoid such problem occurred?
I appreciate any reply, sincerely.
Arsene
Hi,
Yes Compiere certainly allows precision with BigDecimal. U can see lots of it in the codes.
To control the display u can change the field reference type in the AD's Table & Column area with options such as integer, qty, number, or amount.
To control the logic u have to go into the codes.
If u want examples u can dig thru the tutorials stored here: http://red1.org/compiere/ and in http://compilo.sourceforge.net/
red1