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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 16 12:17:47 CEST 2009


Author: jerome
Date: Fri Oct 16 12:17:46 2009
New Revision: 29745

URL: http://svn.erp5.org?rev=29745&view=rev
Log:
bug fix, we should check for accounting periods inside the mapping related organisation

Modified:
    erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml?rev=29745&r1=29744&r2=29745&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml [utf8] Fri Oct 16 12:17:46 2009
@@ -124,8 +124,10 @@
     if no_accounts:\n
       valid_date = True\n
     else:\n
-      section = transaction.getSourceSectionValue()\n
-      if section is not None and not len(section.contentValues(\n
+      section = source_section\n
+      if section.getPortalType() == \'Organisation\':\n
+        section = section.Organisation_getMappingRelatedOrganisation()\n
+      if not len(section.contentValues(\n
              filter=dict(portal_type="Accounting Period"))):\n
         valid_date = True\n
       else:\n
@@ -152,8 +154,10 @@
     if no_accounts:\n
       valid_date = True\n
     else:\n
-      section = transaction.getDestinationSectionValue()\n
-      if section is not None and not len(section.contentValues(\n
+      section = destination_section\n
+      if section.getPortalType() == \'Organisation\':\n
+        section = section.Organisation_getMappingRelatedOrganisation()\n
+      if not len(section.contentValues(\n
              filter=dict(portal_type="Accounting Period"))):\n
         valid_date = True\n
       else:\n

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=29745&r1=29744&r2=29745&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Fri Oct 16 12:17:46 2009
@@ -1,1 +1,1 @@
-999
+1000




More information about the Erp5-report mailing list