diff --git a/app/TransactionRules/Actions/ConvertToDeposit.php b/app/TransactionRules/Actions/ConvertToDeposit.php index 70b78f862a..8ff79f0e79 100644 --- a/app/TransactionRules/Actions/ConvertToDeposit.php +++ b/app/TransactionRules/Actions/ConvertToDeposit.php @@ -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.');