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 '';