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

search transactions by creation date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5018 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf556214
......@@ -73,8 +73,10 @@ kw[\'stat\'] = 1\n
kw[\'omit_output\'] = 1\n
\n
for keyword in [\'section_category\', \'from_date\', \'to_date\', \'source_reference\',\n
\'entity\', \'node\', \'amount\', \'amount_max_range_max\',\n
\'amount_range_min\', \'resource\', \'simulation_state\' ] :\n
\'entity\', \'node\', \'amount\', \'amount_range_min\', \'amount_max_range_max\',\n
\'creation_date_range_min\', \'creation_date_range_max\', \n
\'translated_simulation_state_title\', \'simulation_state\',\n
\'portal_type\', \'translated_portal_type\', \'resource\' ] :\n
if keyword in params :\n
kw[keyword] = params[keyword]\n
\n
......
......@@ -72,9 +72,11 @@ kw = {}\n
kw[\'stat\'] = 1\n
kw[\'omit_input\'] = 1\n
\n
for keyword in [\'section_category\', \'from_date\', \'to_date\',\n
\'entity\', \'node\', \'amount\', \'amount_max_range_max\',\n
\'amount_range_min\', \'resource\', \'simulation_state\' ] :\n
for keyword in [\'section_category\', \'from_date\', \'to_date\', \'source_reference\',\n
\'entity\', \'node\', \'amount\', \'amount_range_min\', \'amount_max_range_max\',\n
\'creation_date_range_min\', \'creation_date_range_max\', \n
\'translated_simulation_state_title\', \'simulation_state\',\n
\'portal_type\', \'translated_portal_type\', \'resource\' ] :\n
if keyword in params :\n
kw[keyword] = params[keyword]\n
\n
......
......@@ -40,6 +40,18 @@
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>amount_range_max</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>amount_range_min</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>at_date</string> </key>
<value>
......@@ -62,6 +74,18 @@
</dictionary>
</value>
</item>
<item>
<key> <string>creation_date_range_max</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>creation_date_range_min</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>entity</string> </key>
<value>
......@@ -225,6 +249,10 @@
<string>stat</string>
<string>omit_input</string>
<string>omit_output</string>
<string>amount_range_min</string>
<string>amount_range_max</string>
<string>creation_date_range_min</string>
<string>creation_date_range_max</string>
<string>transaction</string>
<string>section_category</string>
<string>count</string>
......@@ -265,6 +293,10 @@ entity=""\r\n
stat=""\r\n
omit_input\r\n
omit_output\r\n
amount_range_min\r\n
amount_range_max\r\n
creation_date_range_min\r\n
creation_date_range_max\r\n
transaction=""\r\n
section_category=""\r\n
count=""</string> </value>
......@@ -355,6 +387,8 @@ WHERE\n
<dtml-if amount> AND ABS(movement.quantity) = <dtml-sqlvar amount type="float"> </dtml-if>\n
<dtml-if amount_range_min> AND ABS(movement.quantity) >= <dtml-sqlvar amount_range_min type="float"> </dtml-if>\n
<dtml-if amount_range_max> AND ABS(movement.quantity) < <dtml-sqlvar amount_range_max type="float"> </dtml-if>\n
<dtml-if creation_date_range_min> AND catalog.creation_date >= <dtml-sqlvar creation_date_range_min type="datetime"> </dtml-if>\n
<dtml-if creation_date_range_max> AND catalog.creation_date <= <dtml-sqlvar creation_date_range_max type="datetime"> </dtml-if>\n
<dtml-if "from_date or to_date or at_date or node or resource or entity or stat or section_category"> AND child.parent_uid = catalog.uid </dtml-if>\n
<dtml-if "from_date or to_date or at_date or node or resource or stat"> AND movement.uid = child.uid </dtml-if>\n
<dtml-if "entity or stat or section_category"> AND stock.uid = child.uid </dtml-if>\n
......@@ -482,6 +516,8 @@ WHERE\n
<dtml-if amount> AND ABS(movement.quantity) = <dtml-sqlvar amount type="float"> </dtml-if>\n
<dtml-if amount_range_min> AND ABS(movement.quantity) >= <dtml-sqlvar amount_range_min type="float"> </dtml-if>\n
<dtml-if amount_range_max> AND ABS(movement.quantity) < <dtml-sqlvar amount_range_max type="float"> </dtml-if>\n
<dtml-if creation_date_range_min> AND catalog.creation_date >= <dtml-sqlvar creation_date_range_min type="datetime"> </dtml-if>\n
<dtml-if creation_date_range_max> AND catalog.creation_date <= <dtml-sqlvar creation_date_range_max type="datetime"> </dtml-if>\n
<dtml-if "from_date or to_date or at_date or node or resource or entity or stat or section_category"> AND child.parent_uid = catalog.uid </dtml-if>\n
<dtml-if "from_date or to_date or at_date or node or resource or stat"> AND movement.uid = child.uid </dtml-if>\n
<dtml-if "entity or stat or section_category"> AND stock.uid = child.uid </dtml-if>\n
......
2006-01-04 jerome
* search transaction by creation date.
2006-01-03 jerome
* add skins and actions for multi currency
......
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