[Erp5-report] r25777 - in /erp5/trunk/bt5/erp5_accounting: WorkflowTemplateItem/portal_work...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 2 15:02:20 CET 2009


Author: jerome
Date: Mon Mar  2 15:02:19 2009
New Revision: 25777

URL: http://svn.erp5.org?rev=25777&view=rev
Log:
support adding an accounting period before any other

Modified:
    erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkDates.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkDates.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkDates.xml?rev=25777&r1=25776&r2=25777&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkDates.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkDates.xml [utf8] Mon Mar  2 15:02:19 2009
@@ -76,7 +76,7 @@
 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

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=25777&r1=25776&r2=25777&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Mon Mar  2 15:02:19 2009
@@ -1,1 +1,1 @@
-870
+871




More information about the Erp5-report mailing list