From 59fc8c4c187bb20aa89df3c595e6098bb0e584a9 Mon Sep 17 00:00:00 2001 From: Sanjeev Date: Fri, 11 Dec 2020 11:54:56 +0530 Subject: [PATCH] certificate : ps --- Apollo/api/application/models/Reports_model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Apollo/api/application/models/Reports_model.php b/Apollo/api/application/models/Reports_model.php index 8abb0c4e..b5ba4b14 100755 --- a/Apollo/api/application/models/Reports_model.php +++ b/Apollo/api/application/models/Reports_model.php @@ -391,7 +391,7 @@ $sql = "SELECT if(sms.acmts = '','-',IFNULL(sms.acmts, '-')) AS acmts, if(sfs.ftype = '','-',IFNULL(sfs.ftype, '-')) AS ctype, if(sms.certname = '','-',IFNULL(sms.certname, '-')) AS certname, - if(balance = '','-',IFNULL(balance, '-')) AS balance, + balance,totalpaid,totalpayable, if(sfb.bdate = '','-',IFNULL(sfb.bdate, '-')) AS initialPaid, if(scd.eid = '','-',IFNULL(scd.eid, '-')) AS Enrollment_id, if(std.name = '','-',IFNULL(std.name, '-')) AS Student_name, @@ -434,7 +434,7 @@ LEFT JOIN app.Comments AS acmts, CertificationType AS ctype, app.CertificationType AS certname, - SUM(bal.balpayable) AS balance, + SUM(bal.balpayable) AS balance,bal.totalpaid,bal.totalpayable, app.CourierDetails AS courierdetails FROM T_ApplicationStatus AS app @@ -538,7 +538,7 @@ LEFT JOIN $sql.=" ORDER BY sfb.bdate ASC"; //echo $sql; - // print_r($sql);die(); + print_r($sql);die(); $leadDet=$this->db->query($sql); $cert_statusDetails = $leadDet->result();