diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml index 42f7a9c82bcb868f64daa180f407b0059cec0b36..3daa8bd798b71373de0bfac2cd67fc447c3b0d29 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml @@ -82,6 +82,10 @@ inventory_params = dict(section_uid=section_uid,\n group_by_resource=0)\n if portal_type and portal_type != portal.getPortalAccountingTransactionTypeList():\n inventory_params[\'parent_portal_type\'] = portal_type\n +if function:\n + inventory_params[\'function\'] = function\n +if project:\n + inventory_params[\'project\'] = project\n \n if node_uid:\n inventory_params[\'node_uid\'] = node_uid\n @@ -726,7 +730,7 @@ return new_line_list\n </item> <item> <key> <string>_params</string> </key> - <value> <string>show_empty_accounts, expand_accounts, at_date, from_date, period_start_date, section_uid, simulation_state, precision, node_uid, gap_root=None, per_account_class_summary=0, portal_type=None, **kw</string> </value> + <value> <string>show_empty_accounts, expand_accounts, at_date, from_date, period_start_date, section_uid, simulation_state, precision, node_uid, gap_root=None, per_account_class_summary=0, portal_type=None, function=None, project=None, **kw</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -746,7 +750,7 @@ return new_line_list\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>12</int> </value> + <value> <int>14</int> </value> </item> <item> <key> <string>co_varnames</string> </key> @@ -764,6 +768,8 @@ return new_line_list\n <string>gap_root</string> <string>per_account_class_summary</string> <string>portal_type</string> + <string>function</string> + <string>project</string> <string>kw</string> <string>Products.PythonScripts.standard</string> <string>Object</string> @@ -862,6 +868,8 @@ return new_line_list\n <none/> <int>0</int> <none/> + <none/> + <none/> </tuple> </value> </item> diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceReportSectionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceReportSectionList.xml index c60efd533ca5e72dbaca61a3eb76512a2a9393e5..660af3e3893d0c3ff75a7003b84ee39021f4a332 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceReportSectionList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceReportSectionList.xml @@ -64,6 +64,8 @@ N_ = portal.Base_translateString\n at_date = request[\'at_date\']\n from_date = request.get(\'from_date\', None)\n portal_type = request.get(\'portal_type\', None)\n +function = request.get(\'function\', None)\n +project = request.get(\'project\', None)\n simulation_state = request[\'simulation_state\']\n expand_accounts = request.get(\'expand_accounts\', False)\n show_empty_accounts = request[\'show_empty_accounts\']\n @@ -113,6 +115,8 @@ return [ ReportSection(\n period_start_date=\n period_start_date.earliestTime(),\n section_uid=section_uid,\n + function=function,\n + project=project,\n portal_type=portal_type,\n simulation_state=simulation_state,\n precision=precision,\n @@ -168,6 +172,8 @@ return [ ReportSection(\n <string>None</string> <string>from_date</string> <string>portal_type</string> + <string>function</string> + <string>project</string> <string>simulation_state</string> <string>False</string> <string>expand_accounts</string> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 0272c1ec6a29c149b3f5f0abfac50d127942d32d..a88135ee830ae58b020aa07f9e641cc047f99606 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -987 \ No newline at end of file +988 \ No newline at end of file