[Erp5-report] r35368 gregory - in /erp5/trunk/bt5/erp5_banking_core: WorkflowTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun May 16 19:09:24 CEST 2010
Author: gregory
Date: Sun May 16 19:09:22 2010
New Revision: 35368
URL: http://svn.erp5.org?rev=35368&view=rev
Log:
Open accounting dates within the current month only
Modified:
erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/accounting_date_workflow/scripts/checkOpenPossible.xml
erp5/trunk/bt5/erp5_banking_core/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/accounting_date_workflow/scripts/checkOpenPossible.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/accounting_date_workflow/scripts/checkOpenPossible.xml?rev=35368&r1=35367&r2=35368&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/accounting_date_workflow/scripts/checkOpenPossible.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/accounting_date_workflow/scripts/checkOpenPossible.xml [utf8] Sun May 16 19:09:22 2010
@@ -68,6 +68,11 @@
site_uid = accounting_date.getSiteUid()\n
if site_uid is None:\n
msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n
+ raise ValidationFailed (msg,)\n
+\n
+# Check if the start_date is in the current month\n
+if not accounting_date.getStartDate().isCurrentMonth():\n
+ msg = Message(domain=\'ui\', message=\'Date must be within the current month\')\n
raise ValidationFailed (msg,)\n
\n
opened_date_list = accounting_date.portal_catalog(portal_type="Accounting Date", simulation_state="opened", default_site_uid=accounting_date.getSiteUid())\n
Modified: erp5/trunk/bt5/erp5_banking_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/bt/revision?rev=35368&r1=35367&r2=35368&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/bt/revision [utf8] Sun May 16 19:09:22 2010
@@ -1,1 +1,1 @@
-531
+532
More information about the Erp5-report
mailing list