mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 19:02:35 +01:00
Fix: [ bug #520 ] Product statistics and detailed lists are wrong
This commit is contained in:
@@ -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%">';
|
||||
|
||||
Reference in New Issue
Block a user