bugs fixing
This commit is contained in:
@@ -125,6 +125,12 @@ class DashboardController extends Controller
|
||||
}
|
||||
$getTotal = $getTotal->selectRaw(\DB::raw('SUM(total_investment_or_commitment_amount) as total_commission, SUM(gross_commissioned_earned_inr) as total_gross, SUM(net_commission_received) as total_net'))
|
||||
->first();
|
||||
// $getTotal = MonthlyUpdateMasterCommission::select(
|
||||
// \DB::raw('SUM(total_investment_or_commitment_amount) as total_commission'),
|
||||
// \DB::raw('SUM(gross_commissioned_earned_inr) as total_gross'),
|
||||
// \DB::raw('SUM(net_commission_received) as total_net')
|
||||
// )->first();
|
||||
// dd($getTotal);
|
||||
return response()->json([
|
||||
'total_investment' => $this->IND_money_format($totalInvestment),
|
||||
'gross_commission' => $this->IND_money_format($getTotal->total_gross),
|
||||
|
||||
Reference in New Issue
Block a user