FIX : fetching account on current entity
This commit is contained in:
parent
ed8b6f346d
commit
b04bb9e392
@ -178,6 +178,7 @@ class AccountingAccount extends CommonObject
|
|||||||
if (! empty($limittoachartaccount)) {
|
if (! empty($limittoachartaccount)) {
|
||||||
$sql .= " AND a.fk_pcg_version = '".$this->db->escape($limittoachartaccount)."'";
|
$sql .= " AND a.fk_pcg_version = '".$this->db->escape($limittoachartaccount)."'";
|
||||||
}
|
}
|
||||||
|
$sql.= " AND a.entity = ".$conf->entity;
|
||||||
|
|
||||||
dol_syslog(get_class($this) . "::fetch sql=" . $sql, LOG_DEBUG);
|
dol_syslog(get_class($this) . "::fetch sql=" . $sql, LOG_DEBUG);
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user