2
0
forked from Wavyzz/dolibarr

Fix: Fix graph for product distribution.

Add limit and add entry other.
This commit is contained in:
Laurent Destailleur
2013-08-27 11:54:07 +02:00
parent 34fe1fba7f
commit 657c4d6e90
9 changed files with 54 additions and 42 deletions

View File

@@ -212,7 +212,7 @@ class FactureStats extends Stats
$sql.= " AND f.datef BETWEEN '".$this->db->idate(dol_get_first_day($year,1,false))."' AND '".$this->db->idate(dol_get_last_day($year,12,false))."'";
$sql.= " GROUP BY product.ref";
$sql.= $this->db->order('nb','DESC');
$sql.= $this->db->plimit(20);
//$sql.= $this->db->plimit(20);
return $this->_getAllByProduct($sql);
}