Commit edf4d1bd authored by Sebastien Robin's avatar Sebastien Robin

Small update of ERP5Banking_getExchangeValue

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12560 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6eba4d41
......@@ -117,6 +117,8 @@ if kw.has_key("explanation_uid"):\n
inventory_kw[\'explanation_uid\'] = kw[\'explanation_uid\']\n
if len(kw[\'explanation_uid\'])==0:\n
return total_inventory_list\n
if kw.has_key("cash_status"):\n
inventory_kw[\'variation_text\'] = "%%cash_status/%s%%" % kw[\'cash_status\']\n
\n
if at_date is not None:\n
# XXX this make sure we look at the end of the day\n
......
......@@ -70,7 +70,7 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
rate_list = context.CurrencyExchange_getExchangeRateList()\n
rate_list = context.CurrencyExchange_getExchangeRateList(from_currency=from_currency,to_currency=to_currency)\n
rate = None\n
if len(rate_list) > 0:\n
rate = rate_list[0]\n
......@@ -107,7 +107,15 @@ return round(rate * price)\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>from_currency=None,to_currency=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -127,12 +135,14 @@ return round(rate * price)\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>from_currency</string>
<string>to_currency</string>
<string>_getattr_</string>
<string>context</string>
<string>rate_list</string>
......@@ -154,7 +164,10 @@ return round(rate * price)\n
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
......
116
\ No newline at end of file
118
\ 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