From 7423046057bfa1a772e0a1cf6eb7e888b6899884 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sat, 20 Jun 2026 10:32:35 +0700 Subject: [PATCH] feat: add transaction type for cash withdrawals and deposits in CashService to enhance transaction clarity --- app/Services/Finance/CashService.php | 2 ++ 1 file changed, 2 insertions(+) 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,