Commit e64ea5de authored by Jérome Perrin's avatar Jérome Perrin

support left join in preferred gap related keys

parent 77341a89
......@@ -9,7 +9,9 @@
<item>
<key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n
table_1</string> </value>
table_1\r\n
RELATED_QUERY_SEPARATOR=" AND "\r\n
query_table="catalog"</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
......@@ -27,8 +29,9 @@ table_1</string> </value>
<dtml-if expr="portal_preferences.getPreferredAccountingTransactionGap()">\n
AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getPreferredAccountingTransactionGap()+\'%\'" type="string">\n
</dtml-if>\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid
<dtml-var RELATED_QUERY_SEPARATOR>\n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = <dtml-var query_table>.uid
]]></string> </value>
</item>
......
......@@ -9,7 +9,9 @@
<item>
<key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n
table_1</string> </value>
table_1\r\n
RELATED_QUERY_SEPARATOR=" AND "\r\n
query_table="catalog"</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
......@@ -27,8 +29,9 @@ table_1</string> </value>
<dtml-if expr="portal_preferences.getPreferredAccountingTransactionGap()">\n
AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getPreferredAccountingTransactionGap()+\'%\'" type="string">\n
</dtml-if>\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n
<dtml-var RELATED_QUERY_SEPARATOR>\n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = <dtml-var query_table>.uid\n
AND <dtml-var table_0>.category_strict_membership = 1\n
......
1525
\ No newline at end of file
1526
\ No newline at end of file
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