Merge branch 'FIX_accounting_filter_pgc_version' of github.com:atm-quentin/dolibarr into FIX_accounting_filter_pgc_version

This commit is contained in:
Quentin VIAL-GOUTEYRON 2023-02-20 14:08:50 +01:00
commit a57ad3b96b

View File

@ -863,7 +863,7 @@ class AccountancyCategory // extends CommonObject
$pcgverid = $conf->global->CHARTOFACCOUNTS;
$pcgvercode = dol_getIdFromCode($this->db, $pcgverid, 'accounting_system', 'rowid', 'pcg_version');
if(empty($pcgvercode)) {
if (empty($pcgvercode)) {
$pcgvercode = $pcgverid;
}