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

support adding an accounting period before any other

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25777 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8d739723
......@@ -76,7 +76,7 @@ period_list = closing_period.getParentValue().searchFolder(\n
for period in period_list:\n
period = period.getObject()\n
if period.getSimulationState() in valid_state_list:\n
if start_date <= period.getStopDate():\n
if start_date <= period.getStopDate() and not stop_date <= period.getStartDate():\n
raise ValidationFailed, translateString(\n
"${date} is already in an open accounting period.",\n
mapping={\'date\': start_date})\n
......
870
\ No newline at end of file
871
\ 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