diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2017-05-16 13:45:37 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2017-05-22 09:01:39 +0200 |
| commit | 02ce25ba01c8011d26e7ff2ca1900aaa5f1f63e0 (patch) | |
| tree | 3e39529a66a4cb0e6e9077bd0247e483e1d78002 /addons/web_editor/static/src/js/transcoder.js | |
| parent | 7eda91ce584d75e66604770b330da0e61ee964b2 (diff) | |
[FIX] purchase: prevent rounding during currency conversion
With the settings:
- Anglo saxon accounting
- real price on product, perpetual accounting,
- multicurrency
- a product with a very small uom (like gram or kilograms and you want to sell many of them, like 500kg)
Flow: purchasing something in another currency
Before this commit, the rounding of the unit price took place right at the conversion level
which led the rounding errors to be amplified by the quantities when the total price was computed
After this commit, the conversion is done on the unit price but is not rounded yet
Only the prices are rounded, as late as possible
OPW 742293
Closes #17015
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions
