[Erp5-report] r34155 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 26 15:21:47 CET 2010


Author: jerome
Date: Fri Mar 26 15:21:43 2010
New Revision: 34155

URL: http://svn.erp5.org?rev=34155&view=rev
Log:
first get accounting period from strict membership

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Base_getAccountingPeriodStartDateForSectionCategory.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Base_getAccountingPeriodStartDateForSectionCategory.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Base_getAccountingPeriodStartDateForSectionCategory.xml?rev=34155&r1=34154&r2=34155&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Base_getAccountingPeriodStartDateForSectionCategory.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Base_getAccountingPeriodStartDateForSectionCategory.xml [utf8] Fri Mar 26 15:21:43 2010
@@ -59,10 +59,13 @@
 \n
 def getAccountingPeriodStartDateForSectionCategory(section_category, date):\n
   portal = context.getPortalObject()\n
+  # XXX for now we guess period start date from the first organisation having\n
+  # accounting periods, giving priority to the organisation directly associated\n
+  # to the section category\n
   section_uid = portal.Base_getSectionUidListForSectionCategory(\n
-                                      section_category)\n
-  # XXX for now we guess period start date from the first organisation having\n
-  # accounting periods\n
+                                      section_category, strict_membership=True)\n
+  section_uid.extend(portal.Base_getSectionUidListForSectionCategory(\n
+                                      section_category, strict_membership=False))\n
   period_start_date = None\n
   valid_accounting_period = dict(portal_type=\'Accounting Period\',\n
                                  simulation_state=(\'planned\', \'confirmed\',\n

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=34155&r1=34154&r2=34155&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Fri Mar 26 15:21:43 2010
@@ -1,1 +1,1 @@
-1159
+1160




More information about the Erp5-report mailing list