Convert to deposit means the journal loses its bill.

This commit is contained in:
James Cole 2022-08-02 05:39:04 +02:00
parent c460ccfad5
commit cc6a7b181a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -119,7 +119,7 @@ class ConvertToDeposit 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 deposit.');
@ -161,7 +161,7 @@ class ConvertToDeposit 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 transfer to deposit.');