Commit 60b5ed87 authored by Sebastien Robin's avatar Sebastien Robin

change the order of checking, it will be more convenient for unit tests

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11579 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f0d4abf5
......@@ -83,12 +83,12 @@ while True:\n
break\n
site = site.getParentValue()\n
\n
# First make sure there is nothing any more on counters\n
transaction.Baobab_checkStockBeforeClosingDate(site=site)\n
\n
# Then make sure there is not any pending operation\n
# First make sure there is not any pending operation\n
transaction.Baobab_checkRemainingOperation(site=site)\n
\n
# Then make sure there is nothing any more on counters\n
transaction.Baobab_checkStockBeforeClosingDate(site=site)\n
\n
current_date = transaction.getStartDate()\n
counter_list = [x.getObject() for x in context.portal_catalog(portal_type="Counter", simulation_state = [\'open\', \'closing\'], site_uid = site.getUid())]\n
\n
......
72
\ No newline at end of file
74
\ 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