Conversion to transfer means that the original journal loses the bill.

This commit is contained in:
James Cole
2022-08-02 05:38:24 +02:00
parent 69d875d981
commit c460ccfad5

View File

@@ -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.');