mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-27 16:56:46 -06:00
Convert to deposit means the journal loses its bill.
This commit is contained in:
parent
c460ccfad5
commit
cc6a7b181a
@ -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.');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user