|
|
|
|
@ -252,7 +252,7 @@ class StatisticsController extends CommonController
|
|
|
|
|
$refund_by_methods = [];
|
|
|
|
|
$refund_methods = (new Refund())->groupBy("payment")->get()->keyBy("payment")->toArray();
|
|
|
|
|
foreach ($refund_methods as $k => $refund_method) {
|
|
|
|
|
$refund_by_methods[$k] = $model_refund->where("payment", $k)->sum("money");
|
|
|
|
|
$refund_by_methods[$k] = $model_refund->clone()->where("payment", $k)->sum("money");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$payment_methods = (new Recharge())->payment_methods;
|
|
|
|
|
|