Commit 7daf9b8e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use portal_selections.buildSQLExpressionFromDomainSelection instead of...

use portal_selections.buildSQLExpressionFromDomainSelection instead of selection_domain.asSQLExpression.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16b9f021
...@@ -430,10 +430,10 @@ FROM\n ...@@ -430,10 +430,10 @@ FROM\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-var "selection_domain.asSQLJoinExpression()">,\n <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-var "selection_report.asSQLJoinExpression()">,\n <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if use_movement_table> movement, </dtml-if>\n <dtml-if use_movement_table> movement, </dtml-if>\n
<dtml-if "stat or omit_input or omit_output or node">\n <dtml-if "stat or omit_input or omit_output or node">\n
...@@ -448,10 +448,10 @@ WHERE\n ...@@ -448,10 +448,10 @@ WHERE\n
AND <dtml-var "query[\'where_expression\']">\n AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSQLExpression()">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_domain)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if specific_reference> AND (\n <dtml-if specific_reference> AND (\n
catalog.source_reference LIKE\n catalog.source_reference LIKE\n
...@@ -617,10 +617,10 @@ FROM\n ...@@ -617,10 +617,10 @@ FROM\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-var "selection_domain.asSQLJoinExpression()">,\n <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-var "selection_report.asSQLJoinExpression()">,\n <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if use_movement_table> movement, </dtml-if>\n <dtml-if use_movement_table> movement, </dtml-if>\n
<dtml-if "stat or omit_input or omit_output or node">\n <dtml-if "stat or omit_input or omit_output or node">\n
...@@ -635,10 +635,10 @@ WHERE\n ...@@ -635,10 +635,10 @@ WHERE\n
AND <dtml-var "query[\'where_expression\']">\n AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSQLExpression()">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_domain)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if specific_reference> AND (\n <dtml-if specific_reference> AND (\n
catalog.source_reference LIKE\n catalog.source_reference LIKE\n
......
...@@ -282,8 +282,8 @@ FROM\n ...@@ -282,8 +282,8 @@ FROM\n
catalog AS section_bc,\n catalog AS section_bc,\n
category AS section_membership,\n category AS section_membership,\n
catalog AS section,\n catalog AS section,\n
<dtml-if selection_domain><dtml-var "selection_domain.asSQLJoinExpression()">, </dtml-if>\n <dtml-if selection_domain><dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)">, </dtml-if>\n
<dtml-if selection_report><dtml-var "selection_report.asSQLJoinExpression()">, </dtml-if>\n <dtml-if selection_report><dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)">, </dtml-if>\n
<dtml-if where_expression>, category </dtml-if>\n <dtml-if where_expression>, category </dtml-if>\n
stock\n stock\n
LEFT JOIN catalog AS mirror_section\n LEFT JOIN catalog AS mirror_section\n
...@@ -356,10 +356,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n ...@@ -356,10 +356,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSQLExpression()">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_domain)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
ORDER BY\n ORDER BY\n
stock.date, transaction_line.uid\n stock.date, transaction_line.uid\n
...@@ -426,8 +426,8 @@ FROM\n ...@@ -426,8 +426,8 @@ FROM\n
catalog AS section_bc,\n catalog AS section_bc,\n
category AS section_membership,\n category AS section_membership,\n
catalog AS section,\n catalog AS section,\n
<dtml-if selection_domain><dtml-var "selection_domain.asSQLJoinExpression()">, </dtml-if>\n <dtml-if selection_domain><dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)">, </dtml-if>\n
<dtml-if selection_report><dtml-var "selection_report.asSQLJoinExpression()">, </dtml-if>\n <dtml-if selection_report><dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)">, </dtml-if>\n
<dtml-if where_expression>, category </dtml-if>\n <dtml-if where_expression>, category </dtml-if>\n
stock\n stock\n
LEFT JOIN catalog AS mirror_section\n LEFT JOIN catalog AS mirror_section\n
...@@ -500,10 +500,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n ...@@ -500,10 +500,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSQLExpression()">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_domain)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
ORDER BY\n ORDER BY\n
stock.date, transaction_line.uid\n stock.date, transaction_line.uid\n
......
...@@ -413,8 +413,8 @@ FROM\n ...@@ -413,8 +413,8 @@ FROM\n
<dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n <dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)"> </dtml-if>\n
, item\n , item\n
\n \n
\n \n
...@@ -462,11 +462,10 @@ WHERE\n ...@@ -462,11 +462,10 @@ WHERE\n
\n \n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSQLExpression(join_table=\'item\',\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_domain, join_table=\'item\', join_column=\'node_uid\')">\n
join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
...@@ -532,8 +531,8 @@ FROM\n ...@@ -532,8 +531,8 @@ FROM\n
<dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n <dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)"> </dtml-if>\n
, item\n , item\n
\n \n
\n \n
...@@ -581,11 +580,10 @@ WHERE\n ...@@ -581,11 +580,10 @@ WHERE\n
\n \n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSQLExpression(join_table=\'item\',\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_domain, join_table=\'item\', join_column=\'node_uid\')">\n
join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n AND <dtml-var "portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
......
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