Merge pull request #12956 from altatof/fetch_account
FIX : fetching account on current entity
This commit is contained in:
commit
c4ee95154d
@ -171,6 +171,7 @@ class AccountingAccount extends CommonObject
|
||||
$sql .= " a.rowid = " . (int) $rowid;
|
||||
} elseif ($account_number) {
|
||||
$sql .= " a.account_number = '" . $this->db->escape($account_number) . "'";
|
||||
$sql .= " AND a.entity = ".$conf->entity;
|
||||
}
|
||||
if (! empty($limittocurrentchart)) {
|
||||
$sql .= ' AND a.fk_pcg_version IN (SELECT pcg_version FROM ' . MAIN_DB_PREFIX . 'accounting_system WHERE rowid=' . $this->db->escape($conf->global->CHARTOFACCOUNTS) . ')';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user