[Erp5-report] r31122 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 7 15:05:48 CET 2009
Author: jerome
Date: Mon Dec 7 15:05:48 2009
New Revision: 31122
URL: http://svn.erp5.org?rev=31122&view=rev
Log:
add a column to show the section title if there are more than 1 section
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml?rev=31122&r1=31121&r2=31122&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml [utf8] Mon Dec 7 15:05:48 2009
@@ -53,7 +53,9 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>"""Get the report sections for account statement.\n
+ <value> <string encoding="cdata"><![CDATA[
+
+"""Get the report sections for account statement.\n
Account is the combination of :\n
- node (the Account in account module)\n
- mirror_section (the Entity in organisation / person module)\n
@@ -120,7 +122,18 @@
params[\'parent_portal_type\'] = parent_portal_type\n
\n
\n
-selection_columns = [\n
+if len(section_uid) > 1:\n
+ selection_columns = [\n
+ (\'Movement_getSpecificReference\', \'Transaction Reference\'),\n
+ (\'date\', \'Date\'),\n
+ (\'Movement_getExplanationTitle\', \'Accounting Transaction Title\'),\n
+ (\'section_title\', \'Section\'),\n
+ (\'Movement_getMirrorSectionTitle\', \'Third Party\'),\n
+ (\'debit\', \'Debit\'),\n
+ (\'credit\', \'Credit\'),\n
+ (\'running_total_price\', \'Net\'),]\n
+else:\n
+ selection_columns = [\n
(\'Movement_getSpecificReference\', \'Transaction Reference\'),\n
(\'date\', \'Date\'),\n
(\'Movement_getExplanationTitle\', \'Accounting Transaction Title\'),\n
@@ -164,7 +177,9 @@
(\'stock.uid\', \'ascending\')],))\n
\n
return report_section_list\n
-</string> </value>
+
+
+]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
@@ -229,6 +244,7 @@
<string>dict</string>
<string>params</string>
<string>_write_</string>
+ <string>len</string>
<string>selection_columns</string>
<string>report_section_list</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=31122&r1=31121&r2=31122&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Mon Dec 7 15:05:48 2009
@@ -1,1 +1,1 @@
-1073
+1074
More information about the Erp5-report
mailing list