Fix syntax error
This commit is contained in:
parent
0fc7ad7c1f
commit
bad565cc64
@ -174,7 +174,7 @@ class AccountingAccount extends CommonObject
|
|||||||
$sql .= ' AND a.fk_pcg_version IN (SELECT pcg_version FROM ' . MAIN_DB_PREFIX . 'accounting_system WHERE rowid=' . $this->db->escape($conf->global->CHARTOFACCOUNTS) . ')';
|
$sql .= ' AND a.fk_pcg_version IN (SELECT pcg_version FROM ' . MAIN_DB_PREFIX . 'accounting_system WHERE rowid=' . $this->db->escape($conf->global->CHARTOFACCOUNTS) . ')';
|
||||||
}
|
}
|
||||||
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)."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_syslog(get_class($this) . "::fetch sql=" . $sql, LOG_DEBUG);
|
dol_syslog(get_class($this) . "::fetch sql=" . $sql, LOG_DEBUG);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user