Commit 34dd7da1 authored by Jérome Perrin's avatar Jérome Perrin

fix LEFT JOIN syntax


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5513 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f52c7d8c
......@@ -272,18 +272,17 @@ SELECT\n
stock.payment_uid AS source_payment_uid\n
FROM\n
movement,\n
stock,\n
catalog,\n
catalog AS transaction_line,\n
catalog AS transaction,\n
catalog AS section_c,\n
catalog AS section_bc,\n
category AS section_membership,\n
catalog AS section\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n
catalog AS section,\n
<dtml-if selection_domain><dtml-var "selection_domain.asSqlJoinExpression()">, </dtml-if>\n
<dtml-if selection_report><dtml-var "selection_report.asSqlJoinExpression()">, </dtml-if>\n
<dtml-if where_expression>, category </dtml-if>\n
\n
stock\n
LEFT JOIN catalog AS destination_section \n
ON destination_section.uid = stock.mirror_section_uid\n
AND stock.node_uid = <dtml-var getUid>\n
......@@ -409,18 +408,17 @@ SELECT\n
stock.payment_uid AS source_payment_uid\n
FROM\n
movement,\n
stock,\n
catalog,\n
catalog AS transaction_line,\n
catalog AS transaction,\n
catalog AS section_c,\n
catalog AS section_bc,\n
category AS section_membership,\n
catalog AS section\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n
catalog AS section,\n
<dtml-if selection_domain><dtml-var "selection_domain.asSqlJoinExpression()">, </dtml-if>\n
<dtml-if selection_report><dtml-var "selection_report.asSqlJoinExpression()">, </dtml-if>\n
<dtml-if where_expression>, category </dtml-if>\n
\n
stock\n
LEFT JOIN catalog AS destination_section \n
ON destination_section.uid = stock.mirror_section_uid\n
AND stock.node_uid = <dtml-var getUid>\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