FIX missing entity filter (#35461)

This commit is contained in:
Regis Houssin 2025-09-24 10:38:16 +02:00 committed by GitHub
parent 1d56ed09f4
commit 161d0e4fdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);