diff --git a/app/Services/Finance/CashService.php b/app/Services/Finance/CashService.php index b5a8afd..1790f14 100644 --- a/app/Services/Finance/CashService.php +++ b/app/Services/Finance/CashService.php @@ -165,6 +165,7 @@ public function recordOutgoing( $transaction = new CashTransaction([ 'cash_account_id' => $account->id, + 'type' => CashTransactionType::WITHDRAWAL, 'amount' => $amount, 'balance_after' => $newBalance, 'description' => $description, @@ -197,6 +198,7 @@ public function recordIncoming( $transaction = new CashTransaction([ 'cash_account_id' => $account->id, + 'type' => CashTransactionType::DEPOSIT, 'amount' => $amount, 'balance_after' => $newBalance, 'description' => $description,