Commit d791c743 authored by Sebastien Robin's avatar Sebastien Robin

add a new vault for Baobab_checkStockBeforeClosingDate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14241 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ddba2fe8
......@@ -84,7 +84,8 @@ resource_uid_list = [x.uid for x in context.currency_cash_module.searchFolder()]
counter_vault_list = context.Delivery_getVaultItemList(\n
user_site=0,base_site=site.getRelativeUrl(),all=1,\n
vault_type=(\'site/surface/banque_interne\',\'site/surface/gros_paiement\',\n
\'site/surface/gros_versement\',\'site/surface/operations_diverses\'))\n
\'site/surface/gros_versement\',\'site/surface/operations_diverses\',\n
\'site/surface/salle_tri\'))\n
for counter_vault in counter_vault_list:\n
counter_vault_url = counter_vault[1]\n
if counter_vault_url==\'\':\n
......
......@@ -67,7 +67,9 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
rate_list = context.CurrencyExchange_getExchangeRateList(from_currency=from_currency,to_currency=to_currency)\n
rate_list = context.CurrencyExchange_getExchangeRateList(from_currency=from_currency,\n
to_currency=to_currency, \n
currency_exchange_type=currency_exchange_type)\n
rate = None\n
if len(rate_list) > 0:\n
rate = rate_list[0]\n
......@@ -104,7 +106,7 @@ return round(rate * price)\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>from_currency=None,to_currency=None</string> </value>
<value> <string>from_currency=None,to_currency=None, currency_exchange_type=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......@@ -132,7 +134,7 @@ return round(rate * price)\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -140,6 +142,7 @@ return round(rate * price)\n
<tuple>
<string>from_currency</string>
<string>to_currency</string>
<string>currency_exchange_type</string>
<string>_getattr_</string>
<string>context</string>
<string>rate_list</string>
......@@ -164,6 +167,7 @@ return round(rate * price)\n
<tuple>
<none/>
<none/>
<none/>
</tuple>
</value>
</item>
......
209
\ No newline at end of file
211
\ 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