🤖 Auto commit for release 'develop' on 2026-04-03

This commit is contained in:
JC5
2026-04-03 07:31:27 +02:00
parent 4435231ffb
commit ecab686ac9
62 changed files with 268 additions and 791 deletions

View File

@@ -105,11 +105,7 @@ class SetSourceToCashAccount implements ActionInterface
event(new TransactionGroupRequestsAuditLogEntry($this->action->rule, $object, 'set_source', null, $cashAccount->name));
// update destination transaction with new destination account:
DB::table('transactions')
->where('transaction_journal_id', '=', $object->id)
->where('amount', '<', 0)
->update(['account_id' => $cashAccount->id])
;
DB::table('transactions')->where('transaction_journal_id', '=', $object->id)->where('amount', '<', 0)->update(['account_id' => $cashAccount->id]);
Log::debug(sprintf('Updated journal #%d (group #%d) and gave it new source account ID.', $object->id, $object->transaction_group_id));