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

It's not necessary a problem if start_date and stop_date are not in the same year.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14105 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fc71cc2
...@@ -83,9 +83,6 @@ stop_date = closing_period.getStopDate()\n ...@@ -83,9 +83,6 @@ stop_date = closing_period.getStopDate()\n
if start_date > stop_date :\n if start_date > stop_date :\n
raise ValidationFailed, N_("Start Date is After Stop Date")\n raise ValidationFailed, N_("Start Date is After Stop Date")\n
\n \n
if start_date.year() != stop_date.year() :\n
raise ValidationFailed, N_("Start Date is not the same year as Stop Date")\n
\n
period_list = closing_period.getParentValue().searchFolder(\n period_list = closing_period.getParentValue().searchFolder(\n
simulation_state = valid_states,\n simulation_state = valid_states,\n
sort_on = [(\'delivery.start_date\', \'asc\')],\n sort_on = [(\'delivery.start_date\', \'asc\')],\n
......
251 253
\ 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