Merge branches 'vapor/staging' and 'vapor/production' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into vapor/staging

This commit is contained in:
edmondlang
2025-03-07 10:28:35 +08:00
@@ -70,7 +70,7 @@ class ListWalletTransactionsLogic extends AbstractControllerLogic
->where('id', '>', $query->first()->id)
->sum('amount');
$runningBalanceInReverse = $currentWalletBalance - $incoming + $outgoing;
$request['running_balance'] = $runningBalanceInReverse;
$request['running_balance'] = bcadd(number_format((float)$runningBalanceInReverse, 10, '.', ''), '0', 5);
}
return $this->collectionResponse(WalletTransactionResource::collection($query));