Commit 3efdc688 authored by Jérome Perrin's avatar Jérome Perrin

fix rounding

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27363 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfca10eb
......@@ -95,7 +95,7 @@ for line in line_list:\n
#update the corresponding price and round it according to the precision of\n
#the converted currency\n
line.setDestinationTotalAssetPrice(\n
round(exchange_ratio*(line.getQuantity())),precision)\n
round(exchange_ratio*(line.getQuantity()), precision))\n
\n
\n
msg = context.Base_translateString(\'Price converted.\')\n
......
......@@ -91,7 +91,7 @@ for line in line_list:\n
#update the corresponding price and round it according to the precision of\n
#the converted currency\n
line.setSourceTotalAssetPrice(\n
round(exchange_ratio*(line.getQuantity())),precision)\n
round(exchange_ratio*(line.getQuantity()) ,precision))\n
\n
\n
msg = context.Base_translateString(\'Price converted.\')\n
......
930
\ No newline at end of file
931
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment