From 5eec78c6d947c93e2357ada9f0a3d3d1abb8ce49 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 13 Mar 2006 14:27:02 +0000 Subject: [PATCH] bugfix --- htdocs/product.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 1bc47ca4f2c..3836bdf2f78 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -852,6 +852,8 @@ class Product */ function load_stats_commande($socid=0) { + global $conf; + $sql = "SELECT COUNT(DISTINCT c.fk_soc) as nb_customers, COUNT(DISTINCT c.rowid) as nb,"; $sql.= " COUNT(cd.rowid) as nb_rows, SUM(cd.qty) as qty"; $sql.= " FROM ".MAIN_DB_PREFIX."commandedet as cd, ".MAIN_DB_PREFIX."product as p,";