Commit 90c5db4f authored by Yoshinori Okuji's avatar Yoshinori Okuji

2005-12-08 yo

* Fix the LEFT JOIN syntax in Resource_zGetInventory and Resource_zGetInventoryList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4566 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c14580ba
......@@ -198,11 +198,16 @@ SELECT\n
MAX(stock.date) AS date\n
\n
FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
stock\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
<dtml-in prefix="table" expr="from_table_list"> \n
<dtml-if expr="table_key != \'stock\'">\n
, <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n
</dtml-in>\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 node, catalog as resource, movement as inventory_movement\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
\n
WHERE\n
1 = 1\n
......@@ -332,11 +337,16 @@ SELECT\n
MAX(stock.date) AS date\n
\n
FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
stock\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
<dtml-in prefix="table" expr="from_table_list"> \n
<dtml-if expr="table_key != \'stock\'">\n
, <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n
</dtml-in>\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 node, catalog as resource, movement as inventory_movement\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
\n
WHERE\n
1 = 1\n
......
......@@ -238,13 +238,16 @@ SELECT\n
catalog.path as path\n
\n
FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key>\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
stock\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
<dtml-in prefix="table" expr="from_table_list"> \n
<dtml-if expr="table_key != \'stock\'">\n
, <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n
</dtml-in>\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 node, catalog as resource, movement as inventory_movement\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
\n
WHERE\n
1 = 1\n
......@@ -375,13 +378,16 @@ SELECT\n
catalog.path as path\n
\n
FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key>\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
stock\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
<dtml-in prefix="table" expr="from_table_list"> \n
<dtml-if expr="table_key != \'stock\'">\n
, <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n
</dtml-in>\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 node, catalog as resource, movement as inventory_movement\n
LEFT JOIN catalog AS section ON (section.uid = stock.section_uid)\n
\n
WHERE\n
1 = 1\n
......
......@@ -104,23 +104,23 @@ cwYAAABvYmplY3RzCQAAAGdldFBvcnRhbGMBAAAAAwAAAAMAAAADAAAAcxoAAAB0AACIAABkAQCD
AgBkAgCIAAAWfAAAgwIAUygDAAAATnMDAAAAbG9nczAAAABQcmVmZXJlbmNlV29ya2Zsb3cuZGlz
YWJsZU90aGVyUHJlZmV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ldGl0ZXJfcwEAAABwcwEAAABhKAoAAABz
AwAAAHNjaXMeAAAAUHJvZHVjdHMuRENXb3JrZmxvdy5EQ1dvcmtmbG93cxAAAABWYWxpZGF0aW9u
RmFpbGVkcwkAAABfZ2V0YXR0cl9zBAAAAHByZWZzBgAAAHBvcnRhbHMDAAAATE9HcwkAAABfZ2V0
aXRlcl9zAQAAAHBzAQAAAGEoAAAAACgBAAAAcwQAAABwcmVmcw8AAABTY3JpcHQgKFB5dGhvbilz
FwAAAGRpc2FibGVPdGhlclByZWZlcmVuY2VzAQAAAHMeAAAADQIPARIBDAMrAAYBEgEMASsBEAEZ
ASgBHwMaARABKAEAAABzFwAAAGRpc2FibGVPdGhlclByZWZlcmVuY2VzKAEAAABzFwAAAGRpc2Fi
bGVPdGhlclByZWZlcmVuY2VzKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9k
dWxlPgEAAABzAAAAAA==</string> </value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
......
2005-12-08 yo
* Fix the LEFT JOIN syntax in Resource_zGetInventory and Resource_zGetInventoryList.
2005-12-08 Kevin
* Transform tuple to list to let ERP5Type_asSecurityGroupId do a sort.
......
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