Commit ca1d004b authored by Aurel's avatar Aurel

when checking remaining cash movements do not fail if source or destination is not defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24516 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3dba7cf0
...@@ -101,9 +101,9 @@ if site_uid is not None:\n ...@@ -101,9 +101,9 @@ if site_uid is not None:\n
continue\n continue\n
if portal_type in (\'Cash Movement\', \'Cash Movement New Not Emitted\'):\n if portal_type in (\'Cash Movement\', \'Cash Movement New Not Emitted\'):\n
if not (\n if not (\n
((simulation_state in (\'confirmed\') and site_url in document.getSource()) \n ((simulation_state in (\'confirmed\') and site_url in document.getSource("")) \n
or \n or \n
(simulation_state in (\'stopped\') and site_url in document.getDestination()))\n (simulation_state in (\'stopped\') and site_url in document.getDestination("")))\n
):\n ):\n
continue\n continue\n
if portal_type in (\'Money Deposit\',) and simulation_state not in (\'confirmed\',):\n if portal_type in (\'Money Deposit\',) and simulation_state not in (\'confirmed\',):\n
......
460 462
\ 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