Commit fa3c469f authored by Vincent Pelletier's avatar Vincent Pelletier

Bad copy-paste of code refering to context. Moreover, price is already known, just reuse it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13971 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c629388b
......@@ -128,7 +128,7 @@ exchange_rate_list = transaction.CurrencyExchange_getExchangeRateList(from_curre
start_date=transaction.getStartDate())\n
if len(exchange_rate_list) == 0:\n
raise ValidationError, \'Convertion between currencies %s and %s is unknown.\'\n
price = context.getSourceTotalAssetPrice() * exchange_rate_list[0]\n
price = price * exchange_rate_list[0]\n
line = transaction.get(\'movement\')\n
\n
in_list = transaction.objectValues(portal_type=\'Incoming Account Incident Line\')\n
......
263
\ No newline at end of file
265
\ 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