I prefer give An exple to explain the problem:
having put the decimal precision "product price" and "account" to 4 and the method of calculating cost to "average price". I make simulation of a computing cost for Article X.
I start with
qty in stock: 149 cost price = 340.8322
new acquisition:
qty = 23 purchase price = 326.22
after receipt, result:
qty = 172 cost = 338.8763
manual calculation I found:
qty = 172 and cost = 338.8782 which is <> that gave OpenERP.
I round cost price to 2 and recalculate.I find the same value OpenERP:
((149 * 340.83 + 23 * 326.22) / (149 +23) = 338.8763
So, I feel OpenERP although the decimal precision is 4, it rounds to 2 before calculating which gives a false result
An exple: having put the decimal precision "product price" and "account" to 4 and the method of calculating cost to "average price". I make simulation of a computing cost for Article X.
I start with qty in stock: 149 cost price = 340.8322
new acquisition: qty = 23 purchase price = 326.22
after receipt, result: qty = 172 cost = 338.8763
manual calculation I found: qty = 172 and cost = 338.8782 which is <> that gave OpenERP.
I round cost price to 2 and recalculate.I find the same value OpenERP: ((149 * 340.83 + 23 * 326.22) / (149 +23) = 338.8763 that's the pb