Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
db55efe9
Commit
db55efe9
authored
Jan 23, 2012
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custom: Add Donor Analytic Code as an analytic column (hardcoded)
parent
2d484a69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml
...ccounting/AccountModule_getAccountListForTrialBalance.xml
+4
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAnalyticColumnList.xml
...s/erp5_accounting/AccountModule_getAnalyticColumnList.xml
+3
-0
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceReportSectionList.xml
...unting/AccountModule_getTrialBalanceReportSectionList.xml
+3
-0
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml
View file @
db55efe9
...
...
@@ -680,7 +680,10 @@ for key, data in line_per_account.items():\n
sort_key = (node_string_index, node_title, mirror_section_title)\n
analytic_dict = dict()\n
for analytic, uid in zip(group_analytic, analytic_key_list):\n
title = getAnalyticTitleFromUid(uid)\n
if analytic == \'string_index\':\n
title = uid\n
else:\n
title = getAnalyticTitleFromUid(uid)\n
analytic_dict[analytic] = title\n
sort_key += (title, )\n
\n
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAnalyticColumnList.xml
View file @
db55efe9
...
...
@@ -101,6 +101,9 @@ for base_category in \\\n
title = portal.portal_categories.restrictedTraverse(base_category).getTitle()\n
analytic_column_list += ((\'%s_translated_title\' % base_category, title),)\n
\n
# XXX should be based on some preference !\n
analytic_column_list += ((\'string_index\', \'Donor Analytic Code\'),)\n
\n
return analytic_column_list\n
</string>
</value>
</item>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceReportSectionList.xml
View file @
db55efe9
...
...
@@ -119,6 +119,9 @@ for analytic in group_analytic:\n
extra_columns += ((\'funding_uid\',\n
context.AccountingTransactionLine_getFundingBaseCategoryTitle()),)\n
group_analytic_uid += (\'funding_uid\',)\n
elif analytic == \'string_index\':\n
extra_columns += ((\'string_index\', \'Donor Analytic Code\'),)\n
group_analytic_uid += (\'string_index\',)\n
else:\n
for analytic_column in possible_analytic_column_list:\n
if analytic_column[0] == analytic:\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment