Commit 408d9cbb authored by Jérome Perrin's avatar Jérome Perrin

Base_getAccountingPeriodStartDateForSectionCategory: take into account the new...

Base_getAccountingPeriodStartDateForSectionCategory: take into account the new 'started' state for Accounting Periods

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17002 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08c3462d
......@@ -81,7 +81,7 @@ def getAccountingPeriodStartDateForSectionCategory(section_category, date):\n
period_start_date = None\n
valid_accounting_period = dict(portal_type=\'Accounting Period\',\n
simulation_state=(\'planned\', \'confirmed\',\n
\'stopped\', \'closing\', \'delivered\'))\n
\'started\', \'stopped\', \'closing\', \'delivered\'))\n
for uid in section_uid:\n
section = portal.portal_catalog.getObject(uid)\n
for ap in section.contentValues(filter=valid_accounting_period):\n
......@@ -114,6 +114,12 @@ return getAccountingPeriodStartDateForSectionCategory(section_category, date)\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>section_category, date</string> </value>
......
431
\ No newline at end of file
434
\ 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