mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix bcadd(): Error: Argument #1 ($num1) is not well-formed at ListWalletTransactionsLogic.php:75
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user