feat: add transaction type for cash withdrawals and deposits in CashService to enhance transaction clarity
This commit is contained in:
parent
3308a3790a
commit
7423046057
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user