FIX missing getEntity 0 in scripts directory
This commit is contained in:
parent
a0d5607ba5
commit
6d088e45ee
@ -128,7 +128,7 @@ $sql .= " WHERE f.fk_soc = s.rowid";
|
||||
$sql .= " AND s.fk_pays = cp.rowid";
|
||||
if (! empty($date_start) && ! empty($date_end))
|
||||
$sql .= " AND f.datec >= '" . $db->idate($date_start) . "' AND f.datec <= '" . $db->idate($date_end) . "'";
|
||||
$sql .= " AND f.entity IN (".getEntity('invoice').")";
|
||||
$sql .= " AND f.entity IN (".getEntity('invoice',0).")";
|
||||
if ($socid)
|
||||
$sql .= " AND f.fk_soc = " . $socid;
|
||||
$sql .= " GROUP BY name";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user