Commit e4ce6db9 authored by Jérome Perrin's avatar Jérome Perrin

when converting for source, don't use quantity, but -quantity (this was only

working for destination)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61850bec
...@@ -91,7 +91,7 @@ for line in line_list:\n ...@@ -91,7 +91,7 @@ for line in line_list:\n
#update the corresponding price and round it according to the precision of\n #update the corresponding price and round it according to the precision of\n
#the converted currency\n #the converted currency\n
line.setSourceTotalAssetPrice(\n line.setSourceTotalAssetPrice(\n
round(exchange_ratio*(line.getQuantity()) ,precision))\n round(exchange_ratio * (-line.getQuantity()), precision))\n
\n \n
\n \n
msg = context.Base_translateString(\'Price converted.\')\n msg = context.Base_translateString(\'Price converted.\')\n
......
954 955
\ No newline at end of file \ 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