Fix: [ bug #520 ] Product statistics and detailed lists are wrong
This commit is contained in:
parent
8839ae38d3
commit
6f4de6e6d0
1 changed files with 2 additions and 2 deletions
|
|
@ -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%">';
|
||||
|
|
|
|||
Loading…
Reference in a new issue