From 650438953e384accd05e840d27a72e05d32b0638 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 7 Feb 2006 12:13:19 +0000
Subject: [PATCH] added total_price to select clause

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5584 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_core/Resource_zStatInventory.xml      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zStatInventory.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zStatInventory.xml
index 8d52f3713d..4c9f52c801 100755
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zStatInventory.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zStatInventory.xml
@@ -254,7 +254,8 @@ selection_uids:list</string> </value>
 SELECT\n
   IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\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
  <dtml-unless from_table_list>\n
   catalog,\n
@@ -399,7 +400,8 @@ WHERE\n
 SELECT\n
   IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\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
  <dtml-unless from_table_list>\n
   catalog,\n
-- 
2.30.9