Commit 7c9e2924 authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_accounting_l10_fr: FEC: Allow to specify from_date instead of using the...

erp5_accounting_l10_fr: FEC: Allow to specify from_date instead of using the last Accounting Period.

For instance to build FEC reports on a daily basis.
parent 3176b938
...@@ -20,6 +20,7 @@ if portal.portal_activities.countMessageWithTag(tag) or \ ...@@ -20,6 +20,7 @@ if portal.portal_activities.countMessageWithTag(tag) or \
context.activate().AccountingTransactionModule_viewFrenchAccountingTransactionFileActive( context.activate().AccountingTransactionModule_viewFrenchAccountingTransactionFileActive(
section_category, section_category,
section_category_strict, section_category_strict,
from_date,
at_date, at_date,
group_by, group_by,
simulation_state, simulation_state,
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>section_category, section_category_strict, at_date, simulation_state, group_by=\'portal_type\', ledger=None, form_id=None, **kw</string> </value> <value> <string>section_category, section_category_strict, at_date, simulation_state, from_date=None, group_by=\'portal_type\', ledger=None, form_id=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -4,8 +4,9 @@ at_date = at_date.latestTime() ...@@ -4,8 +4,9 @@ at_date = at_date.latestTime()
section_uid_list = portal.Base_getSectionUidListForSectionCategory( section_uid_list = portal.Base_getSectionUidListForSectionCategory(
section_category, section_category_strict) section_category, section_category_strict)
from_date = portal.Base_getAccountingPeriodStartDateForSectionCategory( if from_date is None:
section_category, at_date) from_date = portal.Base_getAccountingPeriodStartDateForSectionCategory(
section_category, at_date)
ledger_obj_list = [] ledger_obj_list = []
if ledger is not None: if ledger is not None:
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>section_category, section_category_strict, at_date, group_by, simulation_state, ledger, user_name=None, tag=None, aggregate_tag=None, **kw</string> </value> <value> <string>section_category, section_category_strict, from_date, at_date, group_by, simulation_state, ledger, user_name=None, tag=None, aggregate_tag=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
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