FIX : fetching account on current entity

This commit is contained in:
altairis 2020-01-29 11:05:10 +01:00
parent ed8b6f346d
commit b04bb9e392

View File

@ -178,6 +178,7 @@ class AccountingAccount extends CommonObject
if (! empty($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);
$result = $this->db->query($sql);