Commit c2d160bd authored by Jérome Perrin's avatar Jérome Perrin

avoid calculating the next date when possible

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69e5d667
......@@ -131,6 +131,9 @@ def flush_list():\n
for movement in movement_list:\n
default_range = movement.stop_date - movement.start_date\n
next_start_date = movement.date\n
if next_start_date <= movement.start_date:\n
next_stop_date = movement.stop_date\n
else:\n
next_stop_date = movement.date+default_range\n
next_quantity = movement.total_quantity\n
next_relative_url = movement.relative_url\n
......
325
\ No newline at end of file
326
\ 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