mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Conversion to transfer means that the original journal loses the bill.
This commit is contained in:
@@ -127,7 +127,7 @@ class ConvertToTransfer 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 transfer.');
|
Log::debug('Converted withdrawal to transfer.');
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ class ConvertToTransfer 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 deposit to transfer.');
|
Log::debug('Converted deposit to transfer.');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user