Fix: [ bug #520 ] Product statistics and detailed lists are wrong

This commit is contained in:
Laurent Destailleur 2014-03-01 15:05:00 +01:00
parent 8839ae38d3
commit 6f4de6e6d0

View File

@ -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 '<table class="noborder" width="100%">';