Commit 212f0dd5 authored by Sebastien Robin's avatar Sebastien Robin

- some transitions do not require that we check the counter date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17667 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 379207a8
...@@ -100,9 +100,9 @@ date = transaction.getStartDate()\n ...@@ -100,9 +100,9 @@ date = transaction.getStartDate()\n
# check accounting date\n # check accounting date\n
current_date = DateTime().Date()\n current_date = DateTime().Date()\n
document_date = DateTime(date).Date()\n document_date = DateTime(date).Date()\n
# transaction.log("check_payment_workflow/scripts/validateConsistency", "date = %s, current_date = %s, document_date = %s, site = %s" %(date, current_date, document_date, site))\n # Do not check the counter date, not required at this stage\n
if not document_date > current_date:\n #if not document_date > current_date:\n
transaction.Baobab_checkCounterDateOpen(site=site, date=date)\n # transaction.Baobab_checkCounterDateOpen(site=site, date=date)\n
\n \n
\n \n
# Check the amount.\n # Check the amount.\n
...@@ -157,7 +157,7 @@ context.updateBankingOperation(state_change)\n ...@@ -157,7 +157,7 @@ context.updateBankingOperation(state_change)\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, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
...@@ -192,6 +192,7 @@ context.updateBankingOperation(state_change)\n ...@@ -192,6 +192,7 @@ context.updateBankingOperation(state_change)\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</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>
......
...@@ -87,8 +87,8 @@ if sum([len(x.getAggregateList()) for x in transaction.objectValues(portal_type= ...@@ -87,8 +87,8 @@ if sum([len(x.getAggregateList()) for x in transaction.objectValues(portal_type=
at_date = transaction.getStartDate()\n at_date = transaction.getStartDate()\n
transaction.CheckbookDelivery_checkAggregateStockList(at_date=at_date, node_url = source)\n transaction.CheckbookDelivery_checkAggregateStockList(at_date=at_date, node_url = source)\n
\n \n
# check we are in an opened accounting day\n # check we are in an opened accounting day (Seb, Not required any more)\n
transaction.Baobab_checkCounterDateOpen(site=source, date=date)\n # transaction.Baobab_checkCounterDateOpen(site=source, date=date)\n
\n \n
#site = transaction.getBaobabSourceValue()\n #site = transaction.getBaobabSourceValue()\n
\n \n
......
340 342
\ 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