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([
|
$transaction = new CashTransaction([
|
||||||
'cash_account_id' => $account->id,
|
'cash_account_id' => $account->id,
|
||||||
|
'type' => CashTransactionType::WITHDRAWAL,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'balance_after' => $newBalance,
|
'balance_after' => $newBalance,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
@ -197,6 +198,7 @@ public function recordIncoming(
|
|||||||
|
|
||||||
$transaction = new CashTransaction([
|
$transaction = new CashTransaction([
|
||||||
'cash_account_id' => $account->id,
|
'cash_account_id' => $account->id,
|
||||||
|
'type' => CashTransactionType::DEPOSIT,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'balance_after' => $newBalance,
|
'balance_after' => $newBalance,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user