FIX - AccountingAccount cache — silent reference mutation in accounting journals (#37981)
* FIX/AccountingAccountCache * clean code
This commit is contained in:
parent
d096b47b9b
commit
afa2e4aed1
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ if ($action == 'writebookkeeping' && !$error && $user->hasRight('accounting', 'b
|
|||
$account_label = $accountingaccount->label;
|
||||
|
||||
// get compte id and label
|
||||
if ($accountingaccount->fetch(0, $k, true)) {
|
||||
if ($accountingaccount->id > 0) {
|
||||
$bookkeeping = new BookKeeping($db);
|
||||
$bookkeeping->doc_date = $val["date"];
|
||||
$bookkeeping->doc_ref = $val["ref"];
|
||||
|
|
|
|||
Loading…
Reference in a new issue