From 7f707f16dd4cb614b193770a479fb439f7870fef Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 30 Oct 2018 19:48:01 +0530 Subject: [PATCH] dashboard issues --- Apollo/api/application/models/Dashboard_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apollo/api/application/models/Dashboard_model.php b/Apollo/api/application/models/Dashboard_model.php index 85fee0e1..22cedd64 100755 --- a/Apollo/api/application/models/Dashboard_model.php +++ b/Apollo/api/application/models/Dashboard_model.php @@ -707,7 +707,7 @@ public function leadCountMonth($branchId = null, $requestedBy = null){ SUM(IF((MONTH(std.CreatedOn) = 3), 1, 0)) AS March, SUM(IF((MONTH(std.CreatedOn) = 4), 1, 0)) AS April, SUM(IF((MONTH(std.CreatedOn) = 5), 1, 0)) AS May, - COUNT(DISTINCT std.StudentID) AS total, + COUNT( std.StudentID) AS total, GROUP_CONCAT(DISTINCT sc.sname, '-', sc.cnt SEPARATOR ';') AS AdmissionTakenBy FROM T_StudentDetails std @@ -752,7 +752,7 @@ public function leadCountMonth($branchId = null, $requestedBy = null){ SUM(IF((MONTH(std.CreatedOn) = 3), 1, 0)) AS March, SUM(IF((MONTH(std.CreatedOn) = 4), 1, 0)) AS April, SUM(IF((MONTH(std.CreatedOn) = 5), 1, 0)) AS May, - COUNT(DISTINCT std.StudentID) AS total, + COUNT( std.StudentID) AS total, GROUP_CONCAT(DISTINCT sc.sname, '-', sc.cnt SEPARATOR ';') AS AdmissionTakenBy FROM T_StudentDetails std