bugs fixing

This commit is contained in:
meghamalore
2024-07-02 10:48:37 +05:30
parent 9ba3a476a5
commit 227a2694fb
3 changed files with 15 additions and 8 deletions

View File

@@ -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),