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

added total_price to select clause


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5584 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 125879b1
...@@ -254,7 +254,8 @@ selection_uids:list</string> </value> ...@@ -254,7 +254,8 @@ selection_uids:list</string> </value>
SELECT\n SELECT\n
IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\n IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\n
IFNULL(SUM(stock.quantity), 0.00) AS quantity\n IFNULL(SUM(stock.quantity), 0.00) AS quantity\n
\n IFNULL(SUM(stock.total_price), 0.00) AS total_price\n
\n
FROM\n FROM\n
<dtml-unless from_table_list>\n <dtml-unless from_table_list>\n
catalog,\n catalog,\n
...@@ -399,7 +400,8 @@ WHERE\n ...@@ -399,7 +400,8 @@ WHERE\n
SELECT\n SELECT\n
IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\n IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\n
IFNULL(SUM(stock.quantity), 0.00) AS quantity\n IFNULL(SUM(stock.quantity), 0.00) AS quantity\n
\n IFNULL(SUM(stock.total_price), 0.00) AS total_price\n
\n
FROM\n FROM\n
<dtml-unless from_table_list>\n <dtml-unless from_table_list>\n
catalog,\n catalog,\n
......
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