FIX missing entity filter (#35461)
This commit is contained in:
parent
1d56ed09f4
commit
161d0e4fdf
2 changed files with 2 additions and 2 deletions
|
|
@ -132,7 +132,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||
$HEIGHT = '192';
|
||||
|
||||
$stats = new FactureStats($this->db, $socid, $mode, 0);
|
||||
$stats->where = "f.fk_statut > 0";
|
||||
$stats->where = "f.entity IN (".getEntity('invoice').") AND f.fk_statut > 0";
|
||||
$px1 = null;
|
||||
$px2 = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ class box_graph_invoices_peryear extends ModeleBoxes
|
|||
$HEIGHT = '192';
|
||||
|
||||
$stats = new FactureStats($this->db, $socid, $mode, 0);
|
||||
$stats->where = "f.fk_statut > 0";
|
||||
$stats->where = "f.entity IN (".getEntity('invoice').") AND f.fk_statut > 0";
|
||||
|
||||
// Build graphic amount of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||
$data2 = $stats->getAmountByYear($numberyears);
|
||||
|
|
|
|||
Loading…
Reference in a new issue