mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Convert to deposit means the journal loses its bill.
This commit is contained in:
@@ -119,7 +119,7 @@ class ConvertToDeposit implements ActionInterface
|
|||||||
|
|
||||||
DB::table('transaction_journals')
|
DB::table('transaction_journals')
|
||||||
->where('id', '=', $journal['transaction_journal_id'])
|
->where('id', '=', $journal['transaction_journal_id'])
|
||||||
->update(['transaction_type_id' => $newType->id]);
|
->update(['transaction_type_id' => $newType->id, 'bill_id' => null]);
|
||||||
|
|
||||||
Log::debug('Converted withdrawal to deposit.');
|
Log::debug('Converted withdrawal to deposit.');
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ class ConvertToDeposit implements ActionInterface
|
|||||||
|
|
||||||
DB::table('transaction_journals')
|
DB::table('transaction_journals')
|
||||||
->where('id', '=', $journal['transaction_journal_id'])
|
->where('id', '=', $journal['transaction_journal_id'])
|
||||||
->update(['transaction_type_id' => $newType->id]);
|
->update(['transaction_type_id' => $newType->id, 'bill_id' => null]);
|
||||||
|
|
||||||
Log::debug('Converted transfer to deposit.');
|
Log::debug('Converted transfer to deposit.');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user