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
# check accounting date\n
current_date = DateTime().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
if not document_date > current_date:\n
transaction.Baobab_checkCounterDateOpen(site=site, date=date)\n
# Do not check the counter date, not required at this stage\n
#if not document_date > current_date:\n
# transaction.Baobab_checkCounterDateOpen(site=site, date=date)\n
\n
\n
# Check the amount.\n
......@@ -157,7 +157,7 @@ context.updateBankingOperation(state_change)\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
<value> <string>state_change, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......@@ -192,6 +192,7 @@ context.updateBankingOperation(state_change)\n
<value>
<tuple>
<string>state_change</string>
<string>kw</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
......
......@@ -87,8 +87,8 @@ if sum([len(x.getAggregateList()) for x in transaction.objectValues(portal_type=
at_date = transaction.getStartDate()\n
transaction.CheckbookDelivery_checkAggregateStockList(at_date=at_date, node_url = source)\n
\n
# check we are in an opened accounting day\n
transaction.Baobab_checkCounterDateOpen(site=source, date=date)\n
# check we are in an opened accounting day (Seb, Not required any more)\n
# transaction.Baobab_checkCounterDateOpen(site=source, date=date)\n
\n
#site = transaction.getBaobabSourceValue()\n
\n
......
340
\ No newline at end of file
342
\ 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