feat: add transaction type for cash withdrawals and deposits in CashService to enhance transaction clarity

This commit is contained in:
Yoga Pangestu 2026-06-20 10:32:35 +07:00
parent 3308a3790a
commit 7423046057

View File

@ -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,