From 6f4de6e6d039bc419884dd67a3bc810ad23a0e8a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 Mar 2014 15:05:00 +0100 Subject: [PATCH] Fix: [ bug #520 ] Product statistics and detailed lists are wrong --- htdocs/product/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/index.php b/htdocs/product/index.php index 247ddf7d5ff..cc2d5e76599 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -113,8 +113,8 @@ $result = $db->query($sql); while ($objp = $db->fetch_object($result)) { $status=1; - if (! $objp->tosell && ! $objp->tobuy) $status=0; - $prodser[$objp->fk_product_type][$status]=$objp->total; + if (! $objp->tosell && ! $objp->tobuy) $status=0; // To sell OR to buy + $prodser[$objp->fk_product_type][$status]+=$objp->total; } print '';