Commit 29f754ed authored by Aurel's avatar Aurel

forget to commit file in preivous one

display remaining operation once in

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16955 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3680eee
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
<list> <list>
<string>my_source_payment_reference</string> <string>my_source_payment_reference</string>
<string>my_source_payment_title</string> <string>my_source_payment_title</string>
<string>my_source_credit</string> <string>my_destination_credit</string>
<string>my_source_debit</string> <string>my_destination_debit</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -83,24 +83,25 @@ if site_uid is not None:\n ...@@ -83,24 +83,25 @@ if site_uid is not None:\n
for document in document_list:\n for document in document_list:\n
# Stop Payment and Cash Movement in started state must not block counter day closing.\n # Stop Payment and Cash Movement in started state must not block counter day closing.\n
# Mutilated Banknotes in planned state or in finished state with siege as source must nogt block either.\n # Mutilated Banknotes in planned state or in finished state with siege as source must nogt block either.\n
portal_type = document.getPortalType()\n if document not in operation_list:\n
simulation_state = document.getSimulationState()\n portal_type = document.getPortalType()\n
if (portal_type in (\'Stop Payment\', ) and simulation_state == \'started\') \\\n simulation_state = document.getSimulationState()\n
or (portal_type == \'Mutilated Banknote\' and \n if (portal_type in (\'Stop Payment\', ) and simulation_state == \'started\') \\\n
(simulation_state == \'planned\' or \n or (portal_type == \'Mutilated Banknote\' and \n
(simulation_state == \'finished\' and \'siege\' in here.getSource(\'\'))\n (simulation_state == \'planned\' or \n
)\n (simulation_state == \'finished\' and \'siege\' in here.getSource(\'\'))\n
) \\\n )\n
or (portal_type == \'Monetary Destruction\' and simulation_state == \'ordered\'):\n ) \\\n
continue\n or (portal_type == \'Monetary Destruction\' and simulation_state == \'ordered\'):\n
if portal_type in (\'Cash Movement\', \'Cash Movement New Not Emmited\'):\n continue\n
if not (\n if portal_type in (\'Cash Movement\', \'Cash Movement New Not Emmited\'):\n
((simulation_state in (\'confirmed\') and site_url in document.getSource()) \n if not (\n
or \n ((simulation_state in (\'confirmed\') and site_url in document.getSource()) \n
(simulation_state in (\'stopped\') and site_url in document.getDestination()))\n or \n
):\n (simulation_state in (\'stopped\') and site_url in document.getDestination()))\n
continue\n ):\n
append(document)\n continue\n
append(document)\n
\n \n
def operation_sort(a,b):\n def operation_sort(a,b):\n
result = cmp(a.getPortalType(),b.getPortalType())\n result = cmp(a.getPortalType(),b.getPortalType())\n
......
368 369
\ 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