mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Conversion to transfer means that the original journal loses the bill.
This commit is contained in:
parent
69d875d981
commit
c460ccfad5
@ -127,7 +127,7 @@ class ConvertToTransfer implements ActionInterface
|
||||
|
||||
DB::table('transaction_journals')
|
||||
->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 transfer.');
|
||||
|
||||
@ -167,7 +167,7 @@ class ConvertToTransfer implements ActionInterface
|
||||
|
||||
DB::table('transaction_journals')
|
||||
->where('id', '=', $journal['transaction_journal_id'])
|
||||
->update(['transaction_type_id' => $newType->id]);
|
||||
->update(['transaction_type_id' => $newType->id, 'bill_id' => null]);
|
||||
|
||||
Log::debug('Converted deposit to transfer.');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user