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 ...@@ -117,6 +117,8 @@ if kw.has_key("explanation_uid"):\n
inventory_kw[\'explanation_uid\'] = kw[\'explanation_uid\']\n inventory_kw[\'explanation_uid\'] = kw[\'explanation_uid\']\n
if len(kw[\'explanation_uid\'])==0:\n if len(kw[\'explanation_uid\'])==0:\n
return total_inventory_list\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 \n
if at_date is not None:\n if at_date is not None:\n
# XXX this make sure we look at the end of the day\n # XXX this make sure we look at the end of the day\n
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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 rate = None\n
if len(rate_list) > 0:\n if len(rate_list) > 0:\n
rate = rate_list[0]\n rate = rate_list[0]\n
...@@ -107,7 +107,15 @@ return round(rate * price)\n ...@@ -107,7 +107,15 @@ return round(rate * price)\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -127,12 +135,14 @@ return round(rate * price)\n ...@@ -127,12 +135,14 @@ return round(rate * price)\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>from_currency</string>
<string>to_currency</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>rate_list</string> <string>rate_list</string>
...@@ -154,7 +164,10 @@ return round(rate * price)\n ...@@ -154,7 +164,10 @@ return round(rate * price)\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
116 118
\ 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