[Erp5-report] r6394 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 31 02:18:19 CEST 2006
Author: kevin
Date: Fri Mar 31 02:18:18 2006
New Revision: 6394
URL: http://svn.erp5.org?rev=6394&view=rev
Log:
Add section_portal_type_list parameter to Resource_zGetInventory. This addition is here to help us break acquisition of 'group' property from Person to Organisation. The latter behaviour break accounting calculations.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zGetInventory.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zGetInventory.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zGetInventory.xml?rev=6394&r1=6393&r2=6394&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zGetInventory.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zGetInventory.xml Fri Mar 31 02:18:18 2006
@@ -102,6 +102,17 @@
</value>
</item>
<item>
+ <key> <string>section_portal_type_list</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>list</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ <item>
<key> <string>selection_domain</string> </key>
<value>
<dictionary/>
@@ -137,6 +148,7 @@
<string>order_by_expression</string>
<string>selection_domain</string>
<string>selection_report</string>
+<string>section_portal_type_list</string>
<string>ignore_variation</string>
<string>standardize</string>
<string>omit_simulation</string>
@@ -160,6 +172,7 @@
order_by_expression\r\n
selection_domain\r\n
selection_report\r\n
+section_portal_type_list:list\r\n
ignore_variation\r\n
standardize\r\n
omit_simulation\r\n
@@ -269,6 +282,15 @@
<dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n
</dtml-if>\n
+\n
+<dtml-comment>\n
+ This addition is here to help us break acquisition of \'group\' property from Person to Organisation.\n
+ The latter behaviour break accounting calculations.\n
+</dtml-comment>\n
+<dtml-if section_portal_type_list>\n
+ AND (<dtml-in section_portal_type_list>section.portal_type = \'<dtml-var sequence-item>\'<dtml-unless sequence-end> OR </dtml-unless></dtml-in>)\n
+</dtml-if>\n
+\n
<dtml-if group_by_expression>\n
GROUP BY <dtml-var group_by_expression>\n
</dtml-if>\n
@@ -403,6 +425,15 @@
<dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n
</dtml-if>\n
+\n
+<dtml-comment>\n
+ This addition is here to help us break acquisition of \'group\' property from Person to Organisation.\n
+ The latter behaviour break accounting calculations.\n
+</dtml-comment>\n
+<dtml-if section_portal_type_list>\n
+ AND (<dtml-in section_portal_type_list>section.portal_type = \'<dtml-var sequence-item>\'<dtml-unless sequence-end> OR </dtml-unless></dtml-in>)\n
+</dtml-if>\n
+\n
<dtml-if group_by_expression>\n
GROUP BY <dtml-var group_by_expression>\n
</dtml-if>\n
More information about the Erp5-report
mailing list