diff --git a/ChangeLog b/ChangeLog index 6d0490add58..0dbe3ebab3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,8 +34,9 @@ Fix: The customer code was set to uppercase when using numbering module leopard. must keep data safe of any change. Fix: Loading actions extrafields fails. Fix: [ bug #1123 ] Paid deposit invoices are always shown as partially paid when fully paid -Fix: Corrected project contact types translation -Fix: [ bug #1206 ] PMP price is bad calculated +Fix: Corrected project contact types translation. +Fix: [ bug #1206 ] PMP price is bad calculated. +Fix: [ bug #520 ] Product statistics and detailed lists are wrong. ***** ChangeLog for 3.5 compared to 3.4.* ***** For users: diff --git a/htdocs/product/index.php b/htdocs/product/index.php index 7dc9d4917a6..daa2ae08854 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -114,8 +114,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 '