Commit 1d94a79b authored by Jérome Perrin's avatar Jérome Perrin

first get accounting period from strict membership

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34155 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed7eb0a4
......@@ -59,10 +59,13 @@ from Products.ERP5Type.Cache import CachingMethod\n
\n
def getAccountingPeriodStartDateForSectionCategory(section_category, date):\n
portal = context.getPortalObject()\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
# accounting periods, giving priority to the organisation directly associated\n
# to the section category\n
section_uid = portal.Base_getSectionUidListForSectionCategory(\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
......
1159
\ No newline at end of file
1160
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment