From aca4e806d647a64e2834f7bd8c137357366c352d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 17 Apr 2007 17:39:25 +0000 Subject: [PATCH] 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 --- .../scripts/AccountingPeriod_CheckDates.xml | 3 --- bt5/erp5_accounting/bt/revision | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/AccountingPeriod_CheckDates.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/AccountingPeriod_CheckDates.xml index f6d5dccc15..e3f94c2834 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/AccountingPeriod_CheckDates.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/AccountingPeriod_CheckDates.xml @@ -83,9 +83,6 @@ stop_date = closing_period.getStopDate()\n if start_date > stop_date :\n raise ValidationFailed, N_("Start Date is After Stop Date")\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 simulation_state = valid_states,\n sort_on = [(\'delivery.start_date\', \'asc\')],\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index f123c4f4b5..99bc3d5186 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -251 \ No newline at end of file +253 \ No newline at end of file -- 2.30.9