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

Person_getAvailableTimeMovementList should not return blocks with 0 length

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23053 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb1afc86
......@@ -117,7 +117,7 @@ def flush_list():\n
for k in range(1, len(date_list)):\n
stop_date = date_list[k]\n
quantity = quantity_list[k-1]\n
if quantity > 0:\n
if quantity > 0 and start_date < stop_date:\n
\n
mov = mvt_list[k-1].asContext(\n
start_date = start_date,\n
......
324
\ No newline at end of file
325
\ 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