Commit 68d8eee0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2005-12-08 yo

* Fix the LEFT JOIN syntax in Order_zSelectMovement.

2005-12-05 Seb
* Cleaned SaleOrder_applySaleTradeCondition


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4554 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent efc83109
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
......
...@@ -117,7 +117,7 @@ a manufactured product, like a pen, a bicycle...</string> </value> ...@@ -117,7 +117,7 @@ a manufactured product, like a pen, a bicycle...</string> </value>
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -182,7 +182,7 @@ a manufactured product, like a pen, a bicycle...</string> </value> ...@@ -182,7 +182,7 @@ a manufactured product, like a pen, a bicycle...</string> </value>
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -249,7 +249,7 @@ a manufactured product, like a pen, a bicycle...</string> </value> ...@@ -249,7 +249,7 @@ a manufactured product, like a pen, a bicycle...</string> </value>
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -316,7 +316,7 @@ a manufactured product, like a pen, a bicycle...</string> </value> ...@@ -316,7 +316,7 @@ a manufactured product, like a pen, a bicycle...</string> </value>
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -381,7 +381,7 @@ a manufactured product, like a pen, a bicycle...</string> </value> ...@@ -381,7 +381,7 @@ a manufactured product, like a pen, a bicycle...</string> </value>
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
...@@ -446,7 +446,7 @@ a manufactured product, like a pen, a bicycle...</string> </value> ...@@ -446,7 +446,7 @@ a manufactured product, like a pen, a bicycle...</string> </value>
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5Type.CMFCorePatch</string> <string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string> <string>PatchedActionInformation</string>
</tuple> </tuple>
<none/> <none/>
......
...@@ -136,18 +136,16 @@ SELECT DISTINCT\n ...@@ -136,18 +136,16 @@ SELECT DISTINCT\n
catalog.id\n catalog.id\n
\n \n
FROM\n FROM\n
movement as simulation_movement,\n movement as simulation_movement\n
<dtml-in from_table_list> \n <dtml-in prefix="table" expr="from_table_list"> \n
<dtml-var sequence-item> AS <dtml-var sequence-key>\n <dtml-if expr="table_key != \'catalog\'">\n
<dtml-if sequence-end>\n , <dtml-var table_item> AS <dtml-var table_key>\n
<dtml-else>,\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
\n , catalog\n
LEFT JOIN catalog AS base_category ON base_category.relative_url = "delivery" \n LEFT JOIN category \n
AND base_category.portal_type = "Base Category"\n ON (catalog.uid = category.uid\n
LEFT JOIN category ON catalog.uid=category.uid\n AND category.base_category_uid = <dtml-sqlvar "portal_categories.delivery.getUid()" type="int">)\n
AND base_category.uid=category.base_category_uid\n
WHERE\n WHERE\n
1=1\n 1=1\n
<dtml-if where_expression>\n <dtml-if where_expression>\n
...@@ -208,18 +206,16 @@ SELECT DISTINCT\n ...@@ -208,18 +206,16 @@ SELECT DISTINCT\n
catalog.id\n catalog.id\n
\n \n
FROM\n FROM\n
movement as simulation_movement,\n movement as simulation_movement\n
<dtml-in from_table_list> \n <dtml-in prefix="table" expr="from_table_list"> \n
<dtml-var sequence-item> AS <dtml-var sequence-key>\n <dtml-if expr="table_key != \'catalog\'">\n
<dtml-if sequence-end>\n , <dtml-var table_item> AS <dtml-var table_key>\n
<dtml-else>,\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
\n , catalog\n
LEFT JOIN catalog AS base_category ON base_category.relative_url = "delivery" \n LEFT JOIN category \n
AND base_category.portal_type = "Base Category"\n ON (catalog.uid = category.uid\n
LEFT JOIN category ON catalog.uid=category.uid\n AND category.base_category_uid = <dtml-sqlvar "portal_categories.delivery.getUid()" type="int">)\n
AND base_category.uid=category.base_category_uid\n
WHERE\n WHERE\n
1=1\n 1=1\n
<dtml-if where_expression>\n <dtml-if where_expression>\n
......
...@@ -73,11 +73,11 @@ kw[\'simulation_state\'] = \'confirmed\'\n ...@@ -73,11 +73,11 @@ kw[\'simulation_state\'] = \'confirmed\'\n
\n \n
kw.update(context.portal_catalog.buildSQLQuery(**kw))\n kw.update(context.portal_catalog.buildSQLQuery(**kw))\n
\n \n
context.log(\'SaleOrder_selectMovement\', \'SQL\\n%s\' % context.Order_zSelectMovement(src__=1, **kw))\n #context.log(\'SaleOrder_selectMovement\', \'SQL\\n%s\' % context.Order_zSelectMovement(src__=1, **kw))\n
\n \n
if src__==0:\n if src__==0:\n
movement_list = [x.getObject() for x in context.Order_zSelectMovement(**kw)]\n movement_list = [x.getObject() for x in context.Order_zSelectMovement(**kw)]\n
context.log(\'SaleOrder_selectMovement\', \'mvt : %s\' % movement_list)\n #context.log(\'SaleOrder_selectMovement\', \'mvt : %s\' % movement_list)\n
return movement_list\n return movement_list\n
else:\n else:\n
return context.Order_zSelectMovement(src__=1, **kw)\n return context.Order_zSelectMovement(src__=1, **kw)\n
...@@ -86,27 +86,25 @@ else:\n ...@@ -86,27 +86,25 @@ else:\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5pAAAAAGMBAAAACwAA <value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5pAAAAAGMBAAAACwAA
ABEAAABLAAAAc0ABAABkAQBkAgBnAgB0AAB8AQCDAQBkAwA8ZAQAdAAAfAEAgwEAZAUAPGQGAHQA AA8AAABLAAAAc/QAAABkAQBkAgBnAgB0AAB8AQCDAQBkAwA8ZAQAdAAAfAEAgwEAZAUAPGQGAHQA
AHwBAIMBAGQHADxkCAB0AAB8AQCDAQBkCQA8dAIAfAEAZAoAgwIAdAMAdAIAdAIAdAQAZAsAgwIA AHwBAIMBAGQHADxkCAB0AAB8AQCDAQBkCQA8dAIAfAEAZAoAgwIAdAMAdAIAdAIAdAQAZAsAgwIA
ZAwAgwIAfAEAjQEAgwEAAXQCAHQEAGQNAIMCAGQOAGQPAHQDAHQCAHQEAGQQAIMCAGQRAGQSAHwB ZAwAgwIAfAEAjQEAgwEAAXwAAGQNAGoCAG9TAAFnAAAEaQYAfQcAdAgAdAMAdAI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AAAAFNhbGVPcmRlcl9zZWxl
AAAAcw8AAABTY3JpcHQgKFB5dGhvbilzGAAAAFNhbGVPcmRlcl9zZWxlY3RNb3ZlbWVudAEAAABz Y3RNb3ZlbWVudCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAA
FgAAABYBEAEQARMCLgIvAg0BJgAoARcBCAIoAQAAAHMYAAAAU2FsZU9yZGVyX3NlbGVjdE1vdmVt cwAAAAA=</string> </value>
ZW50KAEAAABzGAAAAFNhbGVPcmRlcl9zZWxlY3RNb3ZlbWVudCgAAAAAKAAAAABzDwAAAFNjcmlw
dCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_dav_writelocks</string> </key> <key> <string>_dav_writelocks</string> </key>
......
2005-12-08 yo
* Fix the LEFT JOIN syntax in Order_zSelectMovement.
2005-12-05 Seb
* Cleaned SaleOrder_applySaleTradeCondition
2005-11-30 aurel 2005-11-30 aurel
* add aggregateMovementGroup in portal_deliveries/purchase_packing_list_builder * add aggregateMovementGroup in portal_deliveries/purchase_packing_list_builder
......
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