Commit ed1a6146 authored by Vincent Pelletier's avatar Vincent Pelletier

Add check of inventory simulation state.

Depend on catalog version containing that column.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16458 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c45b31ff
...@@ -63,6 +63,17 @@ ...@@ -63,6 +63,17 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>simulation_state</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string>\'delivered\'</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -74,6 +85,7 @@ ...@@ -74,6 +85,7 @@
<string>column_id_list</string> <string>column_id_list</string>
<string>group_by_expression</string> <string>group_by_expression</string>
<string>date</string> <string>date</string>
<string>simulation_state</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -93,7 +105,8 @@ ...@@ -93,7 +105,8 @@
<value> <string>column_value_list_list:list\r\n <value> <string>column_value_list_list:list\r\n
column_id_list:list\r\n column_id_list:list\r\n
group_by_expression\r\n group_by_expression\r\n
date</string> </value> date\r\n
simulation_state=\'delivered\'</string> </value>
</item> </item>
<item> <item>
<key> <string>connection_id</string> </key> <key> <string>connection_id</string> </key>
...@@ -114,6 +127,9 @@ FROM\n ...@@ -114,6 +127,9 @@ FROM\n
inventory\n inventory\n
WHERE\n WHERE\n
is_full_inventory = TRUE\n is_full_inventory = TRUE\n
<dtml-if simulation_state>\n
AND simulation_state = <dtml-sqlvar simulation_state type="string">\n
</dtml-if>\n
<dtml-in prefix="loop" expr="_.range(_.len(column_id_list))">\n <dtml-in prefix="loop" expr="_.range(_.len(column_id_list))">\n
AND <dtml-var expr="column_id_list[loop_item]"> IN (\n AND <dtml-var expr="column_id_list[loop_item]"> IN (\n
<dtml-in expr="column_value_list_list[loop_item]">\n <dtml-in expr="column_value_list_list[loop_item]">\n
...@@ -174,6 +190,9 @@ FROM\n ...@@ -174,6 +190,9 @@ FROM\n
inventory\n inventory\n
WHERE\n WHERE\n
is_full_inventory = TRUE\n is_full_inventory = TRUE\n
<dtml-if simulation_state>\n
AND simulation_state = <dtml-sqlvar simulation_state type="string">\n
</dtml-if>\n
<dtml-in prefix="loop" expr="_.range(_.len(column_id_list))">\n <dtml-in prefix="loop" expr="_.range(_.len(column_id_list))">\n
AND <dtml-var expr="column_id_list[loop_item]"> IN (\n AND <dtml-var expr="column_id_list[loop_item]"> IN (\n
<dtml-in expr="column_value_list_list[loop_item]">\n <dtml-in expr="column_value_list_list[loop_item]">\n
......
erp5_catalog erp5_catalog (>= 1.1)
\ No newline at end of file \ 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