Automated merge from 21.0 to 22.0 by tool pullmerge.sh

This commit is contained in:
Laurent Destailleur 2026-03-26 02:00:04 +01:00
commit 5da56bd12c

View file

@ -883,7 +883,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b
$bookkeeping->subledger_label = $tabcompany[$key]['name'];
if (empty($conf->cache['accountingaccountincurrententity'][$tabpay[$key]["account_various"]])) {
$accountingaccount = new AccountingAccount($db);
$accountingaccount->fetch(null, $tabpay[$key]["account_various"], true);
$accountingaccount->fetch(0, $tabpay[$key]["account_various"], true);
$conf->cache['accountingaccountincurrententity'][$tabpay[$key]["account_various"]] = $accountingaccount;
} else {
$accountingaccount = $conf->cache['accountingaccountincurrententity'][$tabpay[$key]["account_various"]];