Fix: [ bug #520 ] Product statistics and detailed lists are wrong
This commit is contained in:
parent
8839ae38d3
commit
6f4de6e6d0
@ -113,8 +113,8 @@ $result = $db->query($sql);
|
|||||||
while ($objp = $db->fetch_object($result))
|
while ($objp = $db->fetch_object($result))
|
||||||
{
|
{
|
||||||
$status=1;
|
$status=1;
|
||||||
if (! $objp->tosell && ! $objp->tobuy) $status=0;
|
if (! $objp->tosell && ! $objp->tobuy) $status=0; // To sell OR to buy
|
||||||
$prodser[$objp->fk_product_type][$status]=$objp->total;
|
$prodser[$objp->fk_product_type][$status]+=$objp->total;
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user