Commit 9b4c5256 authored by Aurel's avatar Aurel

* add position on accounting tab of delivery

* ERP5Banking_getExchangeValue can take start_date as parameter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14729 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4341165a
...@@ -109,7 +109,8 @@ ...@@ -109,7 +109,8 @@
<string>my_title</string> <string>my_title</string>
<string>my_resource</string> <string>my_resource</string>
<string>my_destination_payment_reference</string> <string>my_destination_payment_reference</string>
<string>my_translated_portal_type</string> <string>your_destination_payment_available_position</string>
<string>your_destination_payment_position</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -120,6 +121,7 @@ ...@@ -120,6 +121,7 @@
<string>my_start_date</string> <string>my_start_date</string>
<string>my_description</string> <string>my_description</string>
<string>my_translated_simulation_state_title</string> <string>my_translated_simulation_state_title</string>
<string>my_translated_portal_type</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -69,7 +69,8 @@ ...@@ -69,7 +69,8 @@
rate_list = context.CurrencyExchange_getExchangeRateList(from_currency=from_currency,\n rate_list = context.CurrencyExchange_getExchangeRateList(from_currency=from_currency,\n
to_currency=to_currency, \n to_currency=to_currency, \n
currency_exchange_type=currency_exchange_type)\n currency_exchange_type=currency_exchange_type,\n
start_date=start_date)\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
...@@ -106,7 +107,7 @@ return round(rate * price)\n ...@@ -106,7 +107,7 @@ return round(rate * price)\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>from_currency=None,to_currency=None, currency_exchange_type=None</string> </value> <value> <string>from_currency=None,to_currency=None, currency_exchange_type=None, start_date</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
...@@ -134,7 +135,7 @@ return round(rate * price)\n ...@@ -134,7 +135,7 @@ return round(rate * price)\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>3</int> </value> <value> <int>4</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
...@@ -143,6 +144,7 @@ return round(rate * price)\n ...@@ -143,6 +144,7 @@ return round(rate * price)\n
<string>from_currency</string> <string>from_currency</string>
<string>to_currency</string> <string>to_currency</string>
<string>currency_exchange_type</string> <string>currency_exchange_type</string>
<string>start_date</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>rate_list</string> <string>rate_list</string>
......
262 264
\ 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