Skip to content
Snippets Groups Projects
Commit 6f4de6e6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

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

parent 8839ae38
No related branches found
No related tags found
No related merge requests found
......@@ -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%">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment