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 @@
<list>
<string>my_source_payment_reference</string>
<string>my_source_payment_title</string>
<string>my_source_credit</string>
<string>my_source_debit</string>
<string>my_destination_credit</string>
<string>my_destination_debit</string>
</list>
</value>
</item>
......
......@@ -83,24 +83,25 @@ if site_uid is not None:\n
for document in document_list:\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
portal_type = document.getPortalType()\n
simulation_state = document.getSimulationState()\n
if (portal_type in (\'Stop Payment\', ) and simulation_state == \'started\') \\\n
or (portal_type == \'Mutilated Banknote\' and \n
(simulation_state == \'planned\' or \n
(simulation_state == \'finished\' and \'siege\' in here.getSource(\'\'))\n
)\n
) \\\n
or (portal_type == \'Monetary Destruction\' and simulation_state == \'ordered\'):\n
continue\n
if portal_type in (\'Cash Movement\', \'Cash Movement New Not Emmited\'):\n
if not (\n
((simulation_state in (\'confirmed\') and site_url in document.getSource()) \n
or \n
(simulation_state in (\'stopped\') and site_url in document.getDestination()))\n
):\n
continue\n
append(document)\n
if document not in operation_list:\n
portal_type = document.getPortalType()\n
simulation_state = document.getSimulationState()\n
if (portal_type in (\'Stop Payment\', ) and simulation_state == \'started\') \\\n
or (portal_type == \'Mutilated Banknote\' and \n
(simulation_state == \'planned\' or \n
(simulation_state == \'finished\' and \'siege\' in here.getSource(\'\'))\n
)\n
) \\\n
or (portal_type == \'Monetary Destruction\' and simulation_state == \'ordered\'):\n
continue\n
if portal_type in (\'Cash Movement\', \'Cash Movement New Not Emmited\'):\n
if not (\n
((simulation_state in (\'confirmed\') and site_url in document.getSource()) \n
or \n
(simulation_state in (\'stopped\') and site_url in document.getDestination()))\n
):\n
continue\n
append(document)\n
\n
def operation_sort(a,b):\n
result = cmp(a.getPortalType(),b.getPortalType())\n
......
368
\ No newline at end of file
369
\ 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