Commit 367d2672 authored by Vincent Pelletier's avatar Vincent Pelletier

Update workflow states which doesn't block counter date from reaching "closed"...

Update workflow states which doesn't block counter date from reaching "closed" status. This is a consequence of earlier update of Cash Movement workflow states.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13069 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9085381f
......@@ -84,15 +84,9 @@ if site_uid is not None:\n
portal_type=portal_type_list)\n
append = operation_list.append\n
for document in document_list:\n
# Cash movement in ordered stated are allowed\n
portal_type = document.getPortalType()\n
if portal_type==\'Cash Movement\':\n
if document.getSimulationState()==\'ordered\':\n
continue\n
elif portal_type==\'Stop Payment\':\n
if document.getSimulationState()==\'started\':\n
continue\n
append(document)\n
# Stop Payment and Cash Movement in started state must not block counter day closing.\n
if not (document.getPortalType() in (\'Stop Payment\', \'Cash Movement\') and document.getSimulationState()==\'started\'):\n
append(document)\n
\n
def operation_sort(a,b):\n
result = cmp(a.getPortalType(),b.getPortalType())\n
......@@ -167,7 +161,6 @@ return operation_list\n
<string>portal_type_list</string>
<string>document_list</string>
<string>document</string>
<string>portal_type</string>
<string>operation_sort</string>
</tuple>
</value>
......
135
\ No newline at end of file
137
\ 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