Fix: Stats produit toujours a 0
This commit is contained in:
parent
c8408855a7
commit
8b9e47b346
@ -72,6 +72,15 @@ print "</table></form><br>";
|
||||
$prodser = array();
|
||||
$prodser[0][0]=$prodser[0][1]=$prodser[1][0]=$prodser[1][1]=0;
|
||||
|
||||
$sql = "SELECT COUNT(p.rowid) as total, p.fk_product_type, p.envente";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."product as p";
|
||||
$sql.= " GROUP BY p.fk_product_type, p.envente";
|
||||
$result = $db->query($sql);
|
||||
while ($objp = $db->fetch_object($result))
|
||||
{
|
||||
$prodser[$objp->fk_product_type][$objp->envente]=$objp->total;
|
||||
}
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Statistics").'</td></tr>';
|
||||
if ($conf->produit->enabled)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user