Commit acfec4f3 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 292c7cef
......@@ -20,6 +20,7 @@ if portal.portal_activities.countMessageWithTag(tag) or \
context.activate().AccountingTransactionModule_viewFrenchAccountingTransactionFileActive(
section_category,
section_category_strict,
from_date,
at_date,
group_by,
simulation_state,
......
......@@ -50,7 +50,7 @@
</item>
<item>
<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>
<key> <string>id</string> </key>
......
......@@ -4,8 +4,9 @@ at_date = at_date.latestTime()
section_uid_list = portal.Base_getSectionUidListForSectionCategory(
section_category, section_category_strict)
from_date = portal.Base_getAccountingPeriodStartDateForSectionCategory(
section_category, at_date)
if from_date is None:
from_date = portal.Base_getAccountingPeriodStartDateForSectionCategory(
section_category, at_date)
ledger_obj_list = []
if ledger is not None:
......
......@@ -50,7 +50,7 @@
</item>
<item>
<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>
<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