Commit fa748417 authored by Sebastien Robin's avatar Sebastien Robin

do not check the source counter date when we are at the destination

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15458 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 98fff37e
...@@ -78,7 +78,7 @@ source_section = transaction.getSourceSection()\n ...@@ -78,7 +78,7 @@ source_section = transaction.getSourceSection()\n
transaction.Baobab_checkCounterDateOpen(site=source_section, date=transaction.getStopDate())\n transaction.Baobab_checkCounterDateOpen(site=source_section, date=transaction.getStopDate())\n
\n \n
# Check source counter stock & date again.\n # Check source counter stock & date again.\n
context.validateVaultBalance(state_change=state_change)\n context.validateVaultBalance(state_change=state_change, check_source_counter_date=0)\n
]]></string> </value> ]]></string> </value>
......
...@@ -78,7 +78,8 @@ resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_t ...@@ -78,7 +78,8 @@ resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_t
source_object = context.portal_categories.getCategoryValue(vault)\n source_object = context.portal_categories.getCategoryValue(vault)\n
\n \n
# check again that we are in the good accounting date\n # check again that we are in the good accounting date\n
transaction.Baobab_checkCounterDateOpen(site=source_object, date=transaction.getStartDate())\n if check_source_counter_date:\n
transaction.Baobab_checkCounterDateOpen(site=source_object, date=transaction.getStartDate())\n
\n \n
if (\'encaisse_des_externes\' not in vault and \'encaisse_des_billets_retires_de_la_circulation\' not in vault):\n if (\'encaisse_des_externes\' not in vault and \'encaisse_des_billets_retires_de_la_circulation\' not in vault):\n
msg = Message(domain="ui", message="Invalid source.")\n msg = Message(domain="ui", message="Invalid source.")\n
...@@ -139,7 +140,7 @@ if transaction.isDematerialization():\n ...@@ -139,7 +140,7 @@ if transaction.isDematerialization():\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change</string> </value> <value> <string>state_change, check_source_counter_date=1, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -159,13 +160,15 @@ if transaction.isDematerialization():\n ...@@ -159,13 +160,15 @@ if transaction.isDematerialization():\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</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>state_change</string> <string>state_change</string>
<string>check_source_counter_date</string>
<string>kw</string>
<string>Products.DCWorkflow.DCWorkflow</string> <string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string> <string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
...@@ -195,7 +198,9 @@ if transaction.isDematerialization():\n ...@@ -195,7 +198,9 @@ if transaction.isDematerialization():\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<int>1</int>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
457 459
\ 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