bugs fixed in all reports and balance fee report added
This commit is contained in:
parent
ce976d8cb0
commit
b1f2a99060
@ -9,7 +9,7 @@ class Reports_model extends CI_Model
|
||||
{
|
||||
public function status($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.lcode,sms.date as sdate,cfd.syear,sms.sem as sem,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,sms.branch as Branch,sms.date as Date,cfd.syear as Sem_year,sms.sem as Sem,sfs.batch as Batch_Code,cm.course as Course_name,cm.uname as University,list.Status,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as Balance_fee,sfp.bdate as Initial_paid_date
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,ListCode as lcode,BranchCode as branch,SDate as date,Sem as sem FROM T_StudyMaterialStatus where ID in (SELECT max(ID) FROM T_StudyMaterialStatus group by StudentID,CourseID,BranchCode,Sem)
|
||||
group by sid,sem,cid,branch) as sms
|
||||
@ -18,6 +18,7 @@ class Reports_model extends CI_Model
|
||||
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||
left join
|
||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
where IsActive = 1
|
||||
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||
@ -32,7 +33,8 @@ group by cid
|
||||
order by CourseID) as cm
|
||||
on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails where IsActive = 1) as std on std.sid=sms.sid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||
where sms.sid != 'null'
|
||||
";
|
||||
if ($br!= ''){
|
||||
@ -50,8 +52,8 @@ order by CourseID) as cm
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid,sem";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Branch,Batch_code,Sem";
|
||||
$sql.=" order by SL_NO";
|
||||
$leadDet=$this->db->query($sql);
|
||||
$statusDetails = $leadDet->result();
|
||||
if (count($statusDetails) > 0) {
|
||||
@ -102,16 +104,17 @@ order by CourseID) as cm
|
||||
}
|
||||
public function markcard($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,sms.ctype,std.father,std.phone,sms.cid as scid,sms.lcode,sms.cdate as sdate,cfd.syear,sms.sem as sem,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,ifnull(scd.eid,'-') as Enrollment_id,sfs.rollno as Roll_NO,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,ifnull(sms.cdate,'-') as Date,cfd.syear as Sem_year,sms.sem as Sem,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as Course_name,cm.uname as University,list.status as Status,sfp.bdate as Initial_paid_date,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as Balance_Fee
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,CertificationType as ctype,CDate as cdate,Sem as sem FROM T_CertificationStatus
|
||||
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
|
||||
group by sid,sem,cid,lcode,branch) as sms
|
||||
left join
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others FROM T_Students_Fees_Status
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,RollNO as rollno,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others FROM T_Students_Fees_Status
|
||||
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||
left join
|
||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
where IsActive = 1
|
||||
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||
@ -126,8 +129,9 @@ group by cid
|
||||
order by CourseID) as cm
|
||||
on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||
where std.active = 1
|
||||
";
|
||||
if ($br!= ''){
|
||||
|
||||
@ -144,8 +148,8 @@ order by CourseID) as cm
|
||||
$sql.=" and u.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid,sem";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem";
|
||||
$sql.=" order by SL_NO";
|
||||
$leadDet=$this->db->query($sql);
|
||||
$mstatusDetails = $leadDet->result();
|
||||
if (count($mstatusDetails) > 0) {
|
||||
@ -161,7 +165,7 @@ order by CourseID) as cm
|
||||
}
|
||||
public function certificate_status($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,sms.certname,std.father,std.phone,sms.cid as scid,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,ifnull(scd.eid,0) as Enrollment_id,std.name as Student_name,sms.certname as Certificate_name,std.father as Father,std.phone as Phone_number,sms.cid as Course_id,sms.adate as Date,cfd.syear as Sem_year,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as Course_name,cm.uname as University,list.status as Status,sfp.bdate as Document_fee_paid_date,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as Balance_fee
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
||||
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
||||
@ -172,6 +176,7 @@ group by sid,cid,lcode,branch) as sms
|
||||
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
||||
left join
|
||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
where IsActive = 1
|
||||
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||
@ -186,8 +191,9 @@ group by cid
|
||||
order by CourseID) as cm
|
||||
on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||
where std.active = 1
|
||||
";
|
||||
if ($br!= ''){
|
||||
|
||||
@ -201,11 +207,11 @@ order by CourseID) as cm
|
||||
}
|
||||
if ($u!= ''){
|
||||
|
||||
$sql.=" and u.uid = '".$u."'";
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
|
||||
$sql.=" order by SL_NO";
|
||||
$leadDet=$this->db->query($sql);
|
||||
$cert_statusDetails = $leadDet->result();
|
||||
if (count($cert_statusDetails) > 0) {
|
||||
@ -221,10 +227,10 @@ order by CourseID) as cm
|
||||
}
|
||||
public function mark_cert_status($bat=null,$br=null,$u=null,$from=null,$to=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,ams.certname,sms.ccmts,ams.acmts,std.father,std.phone,sms.cid as scid,sms.lcode,sms.cdate,ams.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,sms.sem,list.status,alist.astatus,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sfp.bamount as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sfp.bamount) as balance
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as course_name,cm.uname as University,sfp.bdate as Document_fee_paid_date,((sfs.cf + sfs.stf + sfs.others)-sfp.bamount) as Balance_fee,cfd.syear as Sem_year,sms.sem as Sem,list.status as Markcard_status,sms.mdate as Markcard_date,sms.mcmts as Markcard_comments,ams.certname as Certificate_name,alist.astatus as Certificate_status,ams.adate as Certificate_date,ams.acmts as Certificate_comments
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
||||
CertificationType as ctype,CDate as cdate,Sem as sem,Comments as ccmts
|
||||
CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
|
||||
FROM T_CertificationStatus
|
||||
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
|
||||
group by sid,sem,cid,lcode,branch) as sms
|
||||
@ -242,6 +248,7 @@ left join
|
||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||
left join
|
||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
where IsActive = 1
|
||||
group by sid,fid,billno)
|
||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
@ -260,9 +267,9 @@ left join
|
||||
order by CourseID)
|
||||
as cm on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||
where std.active = 1
|
||||
";
|
||||
if ($br!= ''){
|
||||
|
||||
@ -283,12 +290,12 @@ left join
|
||||
$fromd= date("Y-m-d",strtotime($from));
|
||||
$tod=date("Y-m-d",strtotime($to));
|
||||
|
||||
$sql.="and sms.cdate >= '".$fromd."'
|
||||
and sms.cdate <= '".$tod."'";
|
||||
$sql.="and sfp.bdate >= '".$fromd."'
|
||||
and sfp.bdate <= '".$tod."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,fbatch,fid,sem";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem";
|
||||
$sql.=" order by SL_NO";
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
$mcert_statusDetails = $leadDet->result();
|
||||
@ -305,7 +312,7 @@ left join
|
||||
}
|
||||
public function expense($from=null,$to=null){
|
||||
|
||||
$sql = "SELECT dbm.Date as date,exp.TypeName as exp_name,sum(dbm.Amount) as amount FROM T_Income_Outcome_Master exp
|
||||
$sql = "SELECT dbm.Date as date,exp.TypeName as Expense_name,sum(dbm.Amount) as Amount FROM T_Income_Outcome_Master exp
|
||||
join T_DayBookMaster dbm on dbm.Type=exp.ID
|
||||
where dbm.Name = 'I001' and dbm.Status = 'Approved'
|
||||
";
|
||||
@ -318,7 +325,7 @@ left join
|
||||
and dbm.Date <= '".$tod."'";
|
||||
|
||||
}
|
||||
$sql.=" group by exp_name";
|
||||
$sql.=" group by Expense_name";
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
@ -336,7 +343,7 @@ left join
|
||||
}
|
||||
public function answer_booklet($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.sem,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,sfs.batch as Batch_code,sms.branch as Branch_code,sms.adate as Date,cfd.syear as Sem_year,sms.sem as Sem,cm.course as Course_name,cm.uname as University,list.status as Status
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,AnsDate as
|
||||
adate,Sem as sem FROM T_AnswerBookletStatus
|
||||
@ -349,6 +356,7 @@ left join
|
||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||
left join
|
||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
where IsActive = 1
|
||||
group by sid,fid,billno)
|
||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
@ -364,9 +372,9 @@ left join
|
||||
order by CourseID)
|
||||
as cm on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||
where std.active = 1
|
||||
";
|
||||
|
||||
if ($br!= ''){
|
||||
@ -384,8 +392,8 @@ left join
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid,sem";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem";
|
||||
$sql.=" order by SL_NO";
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
@ -403,7 +411,7 @@ left join
|
||||
}
|
||||
public function app_pending($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,cfd.syear as Sem_year,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as Course_name,cm.uname as University,list.status as Status,sfp.bdate as Admission_date
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
||||
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
||||
@ -416,7 +424,7 @@ left join
|
||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
||||
left join
|
||||
(SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
WHERE ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
||||
WHERE IsActive = 1 and ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
||||
group by sid,fid,billno)
|
||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
@ -432,9 +440,9 @@ left join
|
||||
order by CourseID)
|
||||
as cm on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||
where std.active = 1
|
||||
";
|
||||
|
||||
if ($br!= ''){
|
||||
@ -452,8 +460,8 @@ left join
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
|
||||
$sql.=" order by SL_NO";
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
@ -471,57 +479,50 @@ left join
|
||||
}
|
||||
public function doc_pending($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
||||
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
||||
where CertificateName != 'APPLICATION' and ID IN (SELECT max(ID) FROM T_ApplicationStatus group by StudentID,CourseID,BranchCode)
|
||||
group by sid,cid,lcode,branch) as sms
|
||||
left join
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype, sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
|
||||
FROM T_Students_Fees_Status
|
||||
group by sid,fid,cid,batch)
|
||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
||||
left join
|
||||
(SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
WHERE ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
||||
group by sid,fid,billno)
|
||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=sfs.cid and cfd.cid=sfs.ftype
|
||||
left join
|
||||
(SELECT ListCode as lcode,ListName as status FROM T_PickListDetails)
|
||||
as list on list.lcode=sms.lcode
|
||||
left join
|
||||
$sql = "SELECT @s:=@s+1 SL_NO,sdt.StudentID as Student_id,scd.eid as Enrollment_id,sfb.bdate as Admission_date,std.name Student_name,std.father as Father_name,std.phone as Phone_number,lt.CreatedBranch as Branch_code,sfb.batch as Batch_code,lt.Course as Course_name,lt.University as University,uc.cid as Course_id,cfd.syear as Sem_year,sdt.StatusName as Status
|
||||
FROM (SELECT @s:= 0) AS s,T_Student_DocumentTrack_Details as sdt
|
||||
join T_Lead_Tracking as lt on lt.PendingDocStatus=sdt.ID
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sdt.StudentID
|
||||
left join
|
||||
(SELECT CourseID as cid,cm.UniversityID as cuid,u.UniversityID as uid,CourseName as course,
|
||||
UniversityName as uname,cm.BranchCode as branch FROM T_CourseMaster as cm
|
||||
left join T_UniversityMaster as u on u.UniversityID=cm.UniversityID
|
||||
group by cid
|
||||
order by CourseID)
|
||||
as cm on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
UniversityName as uname,cm.BranchCode as branch FROM T_CourseMaster as cm
|
||||
left join T_UniversityMaster as u on u.UniversityID=cm.UniversityID
|
||||
group by cid
|
||||
order by CourseID) as uc on uc.course=lt.Course
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=uc.cid
|
||||
left join
|
||||
(select sfp.sid,sfp.bdate,sfs.batch,sfs.cid from (SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||
WHERE IsActive = 1 and ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
||||
group by sid,fid,billno) as sfp
|
||||
join
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
|
||||
FROM T_Students_Fees_Status
|
||||
group by sid,fid,cid,batch) as sfs on sfs.fid=sfp.fid and sfs.sid=sfp.sid
|
||||
group by sfs.sid,sfs.cid) as sfb on sfb.sid=sdt.StudentID and sfb.cid=uc.cid
|
||||
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sdt.StudentID and scd.cid=uc.cid and scd.branch=uc.branch
|
||||
where std.active = 1
|
||||
|
||||
";
|
||||
|
||||
if ($br!= ''){
|
||||
|
||||
$sql.=" and sms.branch = '".$br."'";
|
||||
$sql.=" and lt.CreatedBranch = '".$br."'";
|
||||
|
||||
}
|
||||
if ($bat!= ''){
|
||||
|
||||
$sql.=" and b.bcode = '".$bat."'";
|
||||
$sql.=" and sfb.batch = '".$bat."'";
|
||||
|
||||
}
|
||||
if ($u!= ''){
|
||||
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
$sql.=" and uc.cuid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid";
|
||||
$sql.=" order by sl";
|
||||
$sql.="group by Student_id,Course_id,Batch_code,Branch_code ";
|
||||
$sql.=" order by SL_NO";
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
@ -539,19 +540,20 @@ left join
|
||||
}
|
||||
public function wav_ref($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,std.name,std.father,std.phone,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,sfs.cid as scid,sms.waiver_bill,sms.waiver,sms.referal_bill,sms.referal,sms.cmts
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,cfd.syear as Sem_year,sfs.batch as Batch_code,scd.branch as Branch_code,sfs.cid as Course_id,cm.course as Course_name,cm.uname as University,sms.waiver_bill as Waiver_bill,sms.waiver as Waiver_amount,sms.referal_bill as Referal_bill,sms.referal as Referal_amount,sms.cmts as Comments
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT StudentID as sid,CommentsForStudent as cmts,FeesId as fid,
|
||||
IF(ModeOfPayment = 'WAIVER', BillNO,0) AS waiver_bill,
|
||||
IF(ModeOfPayment = 'WAIVER', sum(BillAmount), 0) AS waiver,
|
||||
IF(ModeOfPayment = 'REFERRAL', BillNO, 0) AS referal_bill,
|
||||
IF(ModeOfPayment = 'REFERRAL', sum(BillAmount), 0) AS referal FROM T_Students_Fees_PaidDetails
|
||||
where IsActive = 1
|
||||
group by waiver_bill,referal_bill) as sms
|
||||
left join
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype FROM T_Students_Fees_Status
|
||||
group by sid,cid,batch) as sfs on sfs.sid=sms.sid and sfs.fid=sms.fid
|
||||
left join
|
||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
||||
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=scd.cid and cfd.cid=sfs.ftype
|
||||
@ -563,9 +565,8 @@ left join
|
||||
order by CourseID)
|
||||
as cm on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where std.active = 1
|
||||
|
||||
";
|
||||
|
||||
@ -584,8 +585,8 @@ left join
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,fbatch,waiver_bill,referal_bill";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Waiver_bill,Referal_bill";
|
||||
$sql.=" order by SL_NO";
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
@ -603,7 +604,7 @@ left join
|
||||
}
|
||||
public function examfee($bat=null,$br=null,$u=null){
|
||||
|
||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,std.name,std.father,std.phone,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,sfs.cid as scid,sms.cmts,sms.stf,sms.branch
|
||||
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,cfd.syear as Sem_year,sfs.batch as Batch_code,cm.course as Course_name,cm.uname as University,sfs.cid as Course_id,sms.cmts as Comments,sms.stf as Amount,sms.branch as Branch_code
|
||||
from (SELECT @s:= 0) AS s,
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts,BranchCode as branch FROM T_Students_Fees_Status
|
||||
where STFOrWR != ''
|
||||
@ -612,7 +613,7 @@ left join
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype FROM T_Students_Fees_Status
|
||||
group by sid,cid,batch) as sfs on sfs.sid=sms.sid and sfs.fid=sms.fid
|
||||
left join
|
||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
||||
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=scd.cid and cfd.cid=sfs.ftype
|
||||
@ -624,9 +625,9 @@ left join
|
||||
order by CourseID)
|
||||
as cm on cm.cid=cfd.ccid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where sms.sid != 'null'
|
||||
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||
where std.active = 1
|
||||
|
||||
";
|
||||
|
||||
if ($br!= ''){
|
||||
@ -644,8 +645,8 @@ left join
|
||||
$sql.=" and cm.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by ssid,scid,fbatch,fbatch";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
|
||||
$sql.=" order by SL_NO";
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
@ -662,61 +663,54 @@ left join
|
||||
|
||||
}
|
||||
public function balfee($bat=null,$br=null,$u=null){
|
||||
$count="SELECT distinct StudentID as sid FROM T_Students_Fees_PaidDetails";
|
||||
$sc=$this->db->query($count);
|
||||
$ct = $sc->result();
|
||||
$results=array();
|
||||
$answer=array();
|
||||
$sid= array();
|
||||
|
||||
$yy = new RecursiveIteratorIterator(new RecursiveArrayIterator($ct));
|
||||
foreach($yy as $t) {
|
||||
$sid[]=$t;
|
||||
}
|
||||
$s=count($sid);
|
||||
// echo $sid;
|
||||
// print_r($s);die();
|
||||
|
||||
// while($sid<=$s){
|
||||
for($i=0;$i<$s;$i++){
|
||||
$sql = " SELECT @s:=@s+1 sl,ID,StudentID as sid,std.name as name,std.father as father,std.phone as phone,b.batch as batch,br.bname as bname,sfs.cid as cid,u.uname as uname,cm.course as course,cfd.syear as syear,sum(BillAmount) as bamount,sum(sfs.cf) as crsfee,sum(sfs.stf) as stf,sum(sfs.others) as others,(sum(sfs.cf) + sum(sfs.stf) + sum(sfs.others)) as total,(sum(sfs.cf) + (sum(sfs.stf) + sum(sfs.others)) - ifnull(sfp.BillAmount,0)) as balance,InternalComments as cmts,
|
||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 0,1) AS 1billno,
|
||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 0,1) AS 1billamt,
|
||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 1,1) AS 2billno,
|
||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 1,1) AS 2billamt,
|
||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 2,1) AS 3billno,
|
||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 2,1) AS 3billamt,
|
||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 3,1) AS 4billno,
|
||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 3,1) AS 4billamt,
|
||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 4,1) AS 5billno,
|
||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 4,1) AS 5billamt
|
||||
FROM T_Students_Fees_PaidDetails as sfp
|
||||
left join
|
||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts FROM T_Students_Fees_Status
|
||||
group by sid,batch) as sfs on sfs.sid=sfp.StudentID
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details, (SELECT @s:= 0) AS s) as cfd
|
||||
on cfd.cid=sfs.cid
|
||||
left join
|
||||
(SELECT CourseID as cid,UniversityID as uid,CourseName as course FROM T_CourseMaster) as cm
|
||||
on cm.cid=sfs.cid
|
||||
left join
|
||||
(SELECT UniversityID as uid,UniversityName as uname FROM T_UniversityMaster) as u
|
||||
on u.uid=cm.uid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sfp.StudentID
|
||||
|
||||
$sql = "SELECT sfp.StudentID as Student_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sfs.batch as Batch_code,sfs.cid as Course_id,cm.course as Course_name,u.uname as University,sfs.branch as Branch_code,cfd.syear as Sem_year,(sfs.cf + sfs.stf + sfs.others) as Total,(sfb.bamount) as Paid_fee,((sfs.cf + sfs.stf + sfs.others) - (sfb.bamount)) as balance,
|
||||
MAX(CASE WHEN Installment = 1 THEN sfp.BillNO END) as billno1,
|
||||
MAX(CASE WHEN Installment = 1 THEN sfp.BillAmount END) as billamt1,
|
||||
MAX(CASE WHEN Installment = 2 THEN sfp.BillNO END) as billno2,
|
||||
MAX(CASE WHEN Installment = 2 THEN sfp.BillAmount END) as billamt2,
|
||||
MAX(CASE WHEN Installment = 3 THEN sfp.BillNO END) as billno3,
|
||||
MAX(CASE WHEN Installment = 3 THEN sfp.BillAmount END) as billamt3,
|
||||
MAX(CASE WHEN Installment = 4 THEN sfp.BillNO END) as billno4,
|
||||
MAX(CASE WHEN Installment = 4 THEN sfp.BillAmount END) as billamt4,
|
||||
MAX(CASE WHEN Installment = 5 THEN sfp.BillNO END) as billno5,
|
||||
MAX(CASE WHEN Installment = 5 THEN sfp.BillAmount END) as billamt5,
|
||||
MAX(CASE WHEN Installment = 6 THEN sfp.BillNO END) as billno6,
|
||||
MAX(CASE WHEN Installment = 6 THEN sfp.BillAmount END) as billamt6,
|
||||
MAX(CASE WHEN Installment = 7 THEN sfp.BillNO END) as billno7,
|
||||
MAX(CASE WHEN Installment = 7 THEN sfp.BillAmount END) as billamt7,
|
||||
MAX(CASE WHEN Installment = 8 THEN sfp.BillNO END) as billno8,
|
||||
MAX(CASE WHEN Installment = 8 THEN sfp.BillAmount END) as billamt8,
|
||||
MAX(CASE WHEN Installment = 9 THEN sfp.BillNO END) as billno9,
|
||||
MAX(CASE WHEN Installment = 9 THEN sfp.BillAmount END) as billamt9,
|
||||
MAX(CASE WHEN Installment = 10 THEN sfp.BillNO END) as billno10,
|
||||
MAX(CASE WHEN Installment = 10 THEN sfp.BillAmount END) as billamt10
|
||||
FROM T_Students_Fees_PaidDetails as sfp
|
||||
left join (SELECT FeesID as fid,BatchCode as batch,BranchCode as branch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts FROM T_Students_Fees_Status
|
||||
group by fid,sid,batch,branch) as sfs on sfs.fid=sfp.FeesID and sfs.sid=sfp.StudentID
|
||||
left join
|
||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||
on cfd.ccid=sfs.cid
|
||||
left join
|
||||
(SELECT CourseID as cid,UniversityID as uid,CourseName as course FROM T_CourseMaster) as cm
|
||||
on cm.cid=sfs.cid
|
||||
left join
|
||||
(SELECT BatchCode as bcode,BatchName as batch FROM T_BatchMaster) as b on b.bcode=sfs.batch
|
||||
left join
|
||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,BranchID as bid FROM T_Student_CourseDetails) as scd on scd.sid=sfp.StudentID
|
||||
left join
|
||||
(SELECT BranchCode as brcode,BranchName as bname FROM T_BranchMaster) as br on br.brcode=scd.bid
|
||||
where StudentID = '".$sid[$i]."'
|
||||
";
|
||||
(SELECT UniversityID as uid,UniversityName as uname FROM T_UniversityMaster) as u
|
||||
on u.uid=cm.uid
|
||||
left join
|
||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father,IsActive as active FROM T_StudentDetails where IsActive = 1) as std on std.sid=sfp.StudentID
|
||||
left join
|
||||
(SELECT BatchCode as bcode,BatchName as batchname FROM T_BatchMaster) as b on b.bcode=sfs.batch
|
||||
left join
|
||||
(SELECT BranchCode as brcode,BranchName as bname FROM T_BranchMaster) as br on br.brcode=sfp.UpdatedBy
|
||||
left join
|
||||
(SELECT StudentID as sid,FeesID as fid,BillNo as billno,sum(BillAmount) as bamount FROM T_Students_Fees_PaidDetails
|
||||
group by sid,fid) as sfb on sfb.sid=sfp.StudentID and sfb.fid=sfp.FeesID
|
||||
where sfp.IsActive = 1 ";
|
||||
|
||||
if ($br!= ''){
|
||||
|
||||
$sql.=" and sms.branch = '".$br."'";
|
||||
$sql.=" and br.brcode = '".$br."'";
|
||||
|
||||
}
|
||||
if ($bat!= ''){
|
||||
@ -729,13 +723,14 @@ left join
|
||||
$sql.=" and u.uid = '".$u."'";
|
||||
|
||||
}
|
||||
$sql.=" group by sid,cid,batch";
|
||||
$sql.=" order by sl";
|
||||
$sql.=" group by Student_id,Batch_code,Course_id,Branch_code";
|
||||
|
||||
|
||||
|
||||
$leadDet=$this->db->query($sql);
|
||||
$answer[] = $leadDet->result();
|
||||
$answer = $leadDet->result();
|
||||
|
||||
|
||||
|
||||
if (count($answer) > 0) {
|
||||
$results['balfeeList'] = true;
|
||||
@ -744,7 +739,7 @@ left join
|
||||
$results['balfeeList'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
|
||||
}
|
||||
|
||||
@ -64,7 +64,26 @@ app.controller('report_ans_bookletCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'ANSWER BOOKLET STATUS REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'ANSWER BOOKLET STATUS REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Answer_booklet_status.xls",?) FROM ?',[mystyle,$scope.ans_book_data]);
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -64,7 +64,26 @@ app.controller('report_app_pendingCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'APPLICAITON PENDING STUDENT LIST REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'APPLICAITON PENDING STUDENT LIST REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Application_pending_student_list.xls",?) FROM ?',[mystyle,$scope.app_pending_data]);
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -3,9 +3,14 @@
|
||||
app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',
|
||||
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window) {
|
||||
|
||||
// DataTables configurable options
|
||||
|
||||
|
||||
// to generate serial number
|
||||
// $scope.serial = 1;
|
||||
// $scope.itemPerPage=10
|
||||
// $scope.indexCount = function(newPageNumber){
|
||||
|
||||
// $scope.serial = newPageNumber * $scope.itemPerPage - ($scope.itemPerPage-1);
|
||||
// }
|
||||
//to filter labels
|
||||
$scope.filters = {
|
||||
"branch": "",
|
||||
"university": "",
|
||||
@ -33,9 +38,9 @@ app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAler
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// response data
|
||||
$scope.onSubmit = function () {
|
||||
//alert($scope.batch.name);
|
||||
|
||||
$scope.balfee_data = '';
|
||||
$scope.message = '';
|
||||
var response_data = {
|
||||
@ -64,6 +69,26 @@ app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAler
|
||||
});
|
||||
|
||||
}
|
||||
var mystyle = {
|
||||
sheetid: 'BALANCE FEE STATUS REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'BALANCE FEE STATUS REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Balancefee_status.xls",?) FROM ?',[mystyle,$scope.balfee_data]);
|
||||
};
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@ -62,6 +62,26 @@ app.controller('report_certificateCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
||||
});
|
||||
|
||||
}
|
||||
var mystyle = {
|
||||
sheetid: 'CERTIFICATE STATUS REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'CERTIFICATE STATUS REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Certificate_status.xls",?) FROM ?',[mystyle,$scope.cert_data]);
|
||||
};
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@ -64,7 +64,26 @@ app.controller('report_doc_pendingCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'DOCUMENT PENDING STUDENT LIST REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'DOCUMENT PENDING STUDENT LIST REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Document_pending_student_list.xls",?) FROM ?',[mystyle,$scope.doc_pending_data]);
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -62,9 +62,41 @@ app.controller('report_examfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$scope.getstf = function(){
|
||||
var totalf = 0;
|
||||
for(var i = 0; i < $scope.examfee_data.length; i++){
|
||||
var item = $scope.examfee_data[i];
|
||||
totalf += parseFloat(item.Amount);
|
||||
}
|
||||
return totalf; }
|
||||
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'EXAM WRITING FEE REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'EXAM WRITING FEE REPORT',
|
||||
|
||||
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:12px'
|
||||
},
|
||||
|
||||
// column: {style:{Font:{Bold:"1"}}},
|
||||
// rows: {1:{style:{Font:{Color:"#FF0077"}}}},
|
||||
// cells: {1:{1:{
|
||||
// style: {Font:{Color:"#00FFFF"}}
|
||||
// }}}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Exam_writing_fee_report.xls",?) FROM ?',[mystyle,$scope.examfee_data]);
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -62,7 +62,27 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'EXPENSE REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'EXPENSE REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Expense_report.xls",?) FROM ?',[mystyle,$scope.expense_data]);
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -66,7 +66,26 @@ app.controller('report_markcard_certificateCtrl', ["$scope", "API_POINTS", "$htt
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'MARKCARD/CERTIFICATE STATUS REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'MARKCARD/CERTIFICATE STATUS REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Markcard/Certificate_status.xls",?) FROM ?',[mystyle,$scope.mark_cert_data]);
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -62,7 +62,30 @@ app.controller('report_markcard_statusCtrl', ["$scope", "API_POINTS", "$http", "
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'MARKCARD STATUS REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'MARKCARD STATUS REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Markcard_status.xls",?) FROM ?',[mystyle,$scope.markcard_data]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
'use strict';
|
||||
/*** controller***/
|
||||
app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',
|
||||
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window) {
|
||||
function ($scope,apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, DTOptionsBuilder, DTColumnBuilder) {
|
||||
|
||||
// DataTables configurable options
|
||||
// DataTables configurable options
|
||||
|
||||
|
||||
$scope.filters = {
|
||||
@ -27,7 +27,7 @@ app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$ht
|
||||
$scope.batch = response.data.batch;
|
||||
$scope.branch = response.data.branch;
|
||||
$scope.university = response.data.university;
|
||||
console.log($scope.branch);
|
||||
//console.log($scope.branch);
|
||||
} else {
|
||||
}
|
||||
});
|
||||
@ -62,6 +62,65 @@ app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$ht
|
||||
});
|
||||
|
||||
}
|
||||
var mystyle = {
|
||||
sheetid: 'STUDY MATERIAL STATUS REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'STUDY MATERIAL STATUS REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px;'
|
||||
},
|
||||
// row: {
|
||||
// style:'border:1px solid black; padding-left:5px; padding-right:5px'
|
||||
// },
|
||||
// columns: [
|
||||
// {columnid:'email'},
|
||||
// {columnid:'dob', title: 'Birthday', width:300},
|
||||
// {columnid:'name'},
|
||||
// {
|
||||
// columnid:'name',
|
||||
// title: 'Number of letters in name',
|
||||
// width: '300px',
|
||||
// cell: {
|
||||
// value: function(value){return value.length}
|
||||
// }
|
||||
// },
|
||||
// ],
|
||||
// row: {
|
||||
// style: function(sheet,row,rowidx){
|
||||
// return 'background:'+(rowidx%2?'red':'yellow');
|
||||
// }
|
||||
// },
|
||||
// rows: {
|
||||
// 'border:1px black dotted; padding-left:5px; padding-right:5px'
|
||||
// 4:{cell:{style:'background:blue'}}
|
||||
// },
|
||||
// cells: {
|
||||
// 2:{
|
||||
// 2:{
|
||||
// style: 'font-size:45px;background:pink',
|
||||
// value: function(value){return value.substr(1,3);}
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Study_material_status.xls",?) FROM ?',[mystyle,$scope.study_mat_data]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportExcel= function () {
|
||||
alasql('SELECT * INTO XLSX("Study_material_status.xlsx",{headers:true}) \
|
||||
FROM HTML("#data",{headers:true})');
|
||||
}
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@ -63,9 +63,45 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$scope.getwaiver = function(){
|
||||
var total = 0;
|
||||
for(var i = 0; i < $scope.waiver_referal_data.length; i++){
|
||||
var item = $scope.waiver_referal_data[i];
|
||||
total += parseFloat(item.Waiver_amount);
|
||||
}
|
||||
return total; }
|
||||
$scope.getref = function(){
|
||||
var totalf = 0;
|
||||
for(var i = 0; i < $scope.waiver_referal_data.length; i++){
|
||||
var item = $scope.waiver_referal_data[i];
|
||||
totalf += parseFloat(item.Referal_amount);
|
||||
}
|
||||
return totalf; }
|
||||
}
|
||||
|
||||
var mystyle = {
|
||||
sheetid: 'WAIVER AND REFERAL REPORT',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'WAIVER AND REFERAL REPORT',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:10px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT * INTO XLS("Waiver_referal_report.xls",?) FROM ?',[mystyle,$scope.waiver_referal_data]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
@ -385,6 +385,11 @@
|
||||
<span class="title" translate="sidebar.nav.report.examfee">Exam Writing Fee Report</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.reports.balfee" ng-click="checkSuperAdmin()">
|
||||
<span class="title" translate="sidebar.nav.report.balfee">Balance Fee Report</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -75,13 +75,11 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Answer_booklets_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Answer_booklets');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
@ -89,7 +87,7 @@
|
||||
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -104,16 +102,16 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in ans_book_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}({{p.sem}})</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.adate}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_id}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}({{p.Sem}})</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Status}}</td>
|
||||
<td>{{p.Date}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
@ -75,13 +75,11 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Application_pending_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Application_pending');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
@ -90,7 +88,7 @@
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Admission Date</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -105,16 +103,16 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in app_pending_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.adate}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Admission_date}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_id}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Status}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
cursor: pointer;
|
||||
} */
|
||||
</style>
|
||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
||||
@ -75,28 +75,33 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Balance_fee_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Balance_fee');">
|
||||
<!-- <a download="Balance_fee_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Balance_fee');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
|
||||
</a> -->
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.8em;">
|
||||
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="9"></th>
|
||||
<th>Sum of Total Fee</th>
|
||||
<th>Sum of Fees Paid</th>
|
||||
<th>Sum of Balance Fee</th>
|
||||
<th colspan="8"></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th colspan="2">1st payment</th>
|
||||
<th colspan="2">2nd payment</th>
|
||||
<th colspan="2">3rd payment</th>
|
||||
<th colspan="2">4th payment</th>
|
||||
<th colspan="2">5th payment</th>
|
||||
<th>Comments</th>
|
||||
<th colspan="2">6th payment</th>
|
||||
<th colspan="2">7th payment</th>
|
||||
<th colspan="2">8th payment</th>
|
||||
<th colspan="2">9th payment</th>
|
||||
<th colspan="2">10th payment</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -122,7 +127,17 @@
|
||||
<th>Amount</th>
|
||||
<th>Bill No</th>
|
||||
<th>Amount</th>
|
||||
<th>Comments</th>
|
||||
<th>Bill No</th>
|
||||
<th>Amount</th>
|
||||
<th>Bill No</th>
|
||||
<th>Amount</th>
|
||||
<th>Bill No</th>
|
||||
<th>Amount</th>
|
||||
<th>Bill No</th>
|
||||
<th>Amount</th>
|
||||
<th>Bill No</th>
|
||||
<th>Amount</th>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -130,29 +145,99 @@
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody ng-repeat="b in balfee_data">
|
||||
<tr ng-repeat="p in b">
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.total}}</td>
|
||||
<td>{{p.bamount}}</td>
|
||||
<tbody dir-paginate="p in balfee_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{$index + 1}}</td>
|
||||
<td>{{p.Student_id}}</td>
|
||||
<td>{{p.Student_name}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Total}}</td>
|
||||
<td>{{p.Paid_fee}}</td>
|
||||
<td>{{p.balance}}</td>
|
||||
<td>{{p.1billno}}</td>
|
||||
<td>{{p.1billamt}}</td>
|
||||
<td>{{p.2billno}}</td>
|
||||
<td>{{p.2billamt}}</td>
|
||||
<td>{{p.3billno}}</td>
|
||||
<td>{{p.3billamt}}</td>
|
||||
<td>{{p.4billno}}</td>
|
||||
<td>{{p.4billamt}}</td>
|
||||
<td>{{p.5billno}}</td>
|
||||
<td>{{p.5billamt}}</td>
|
||||
<td>
|
||||
<span ng-if="p.billno1">{{p.billno1}}</span>
|
||||
<span ng-if="!p.billno1"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt1">{{p.billamt1}}</span>
|
||||
<span ng-if="!p.billamt1"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno2">{{p.billno2}}</span>
|
||||
<span ng-if="!p.billno2"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt2">{{p.billamt2}}</span>
|
||||
<span ng-if="!p.billamt2"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno3">{{p.billno3}}</span>
|
||||
<span ng-if="!p.billno3"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt3">{{p.billamt3}}</span>
|
||||
<span ng-if="!p.billamt3"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno4">{{p.billno4}}</span>
|
||||
<span ng-if="!p.billno4"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt4">{{p.billamt4}}</span>
|
||||
<span ng-if="!p.billamt4"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno5">{{p.billno5}}</span>
|
||||
<span ng-if="!p.billno5"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt5">{{p.billamt5}}</span>
|
||||
<span ng-if="!p.billamt5"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno6">{{p.billno6}}</span>
|
||||
<span ng-if="!p.billno6"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt6">{{p.billamt6}}</span>
|
||||
<span ng-if="!p.billamt6"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno7">{{p.billno7}}</span>
|
||||
<span ng-if="!p.billno7"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt7">{{p.billamt7}}</span>
|
||||
<span ng-if="!p.billamt7"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno8">{{p.billno8}}</span>
|
||||
<span ng-if="!p.billno8"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt8">{{p.billamt8}}</span>
|
||||
<span ng-if="!p.billamt8"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno9">{{p.billno9}}</span>
|
||||
<span ng-if="!p.billno9"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt9">{{p.billamt9}}</span>
|
||||
<span ng-if="!p.billamt9"> 0 </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billno10">{{p.billno10}}</span>
|
||||
<span ng-if="!p.billno10"> - </span>
|
||||
</td>
|
||||
<td>
|
||||
<span ng-if="p.billamt10">{{p.billamt10}}</span>
|
||||
<span ng-if="!p.billamt10"> 0 </span>
|
||||
</td>
|
||||
<td>{{p.cmts}}</td>
|
||||
|
||||
|
||||
|
||||
@ -58,16 +58,7 @@
|
||||
<option ng-repeat="b in batch" value="{{b.batch}}"> {{b.batch_code}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- <div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
Batch
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Batch</option>
|
||||
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
||||
</select>
|
||||
</div> -->
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||
<div class="pull-right">
|
||||
@ -89,13 +80,11 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="certificate_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Certificate Status');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
@ -104,7 +93,7 @@
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Document Fee Paid Date</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -120,19 +109,19 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in cert_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.bdate}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.balance}}</td>
|
||||
<td>{{p.certname}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.adate}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Document_fee_paid_date}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_name}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Balance_fee}}</td>
|
||||
<td>{{p.Certificate_name}}</td>
|
||||
<td>{{p.Status}}</td>
|
||||
<td>{{p.Date}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
@ -75,13 +75,11 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Document_pending_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Document_pending');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
@ -90,7 +88,7 @@
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Admission Date</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -105,16 +103,16 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in doc_pending_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.adate}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Admission_date}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_name}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Status}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -75,26 +75,24 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Exam_writingfee_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Exam Writing Fee');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <tr>
|
||||
<th colspan="8"></th>
|
||||
<th>Sum of Exam Writing Fee</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tr> -->
|
||||
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -111,22 +109,34 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in examfee_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.stf}}</td>
|
||||
<td>{{p.cmts}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_id}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Amount}}</td>
|
||||
<td>{{p.Comments}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<td>Total</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{{ getstf() }}</td>
|
||||
<td></td>
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
<h3 style="text-align:center;">{{message}}</h3>
|
||||
|
||||
|
||||
@ -77,9 +77,7 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Expense_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Expense_Report');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
@ -100,8 +98,8 @@
|
||||
<tbody dir-paginate="p in expense_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{$index + 1}}</td>
|
||||
<td>{{p.exp_name}}</td>
|
||||
<td style ="text-align:right;">{{p.amount}}</td>
|
||||
<td>{{p.Expense_name}}</td>
|
||||
<td style ="text-align:right;">{{p.Amount}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
@ -117,13 +117,11 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Mark_Card_certificate_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Markcard/Certificate Status');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
@ -132,7 +130,7 @@
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Document Fee Paid Date</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -152,29 +150,29 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in mark_cert_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.bdate}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.balance}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.cdate}}</td>
|
||||
<td>{{p.ccmts}}</td>
|
||||
<td>{{p.certname}}</td>
|
||||
<td>{{p.astatus}}</td>
|
||||
<td>{{p.adate}}</td>
|
||||
<td>{{p.acmts}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Document_fee_paid_date}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_name}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Balance_fee}}</td>
|
||||
<td>{{p.Markcard_status}}</td>
|
||||
<td>{{p.Markcard_date}}</td>
|
||||
<td>{{p.Markcard_comments}}</td>
|
||||
<td>{{p.Certificate_name}}</td>
|
||||
<td>{{p.Certificate_status}}</td>
|
||||
<td>{{p.Certificate_date}}</td>
|
||||
<td>{{p.Certificate_comments}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<h3 style="text-align:center;">{{markcert_message}}</h3>
|
||||
<h3 style="text-align:center;">{{message}}</h3>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -10,17 +10,6 @@
|
||||
|
||||
</style>
|
||||
|
||||
<!-- datatables -->
|
||||
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script> -->
|
||||
<!-- <script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js"> -->
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
@ -92,21 +81,20 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Mark_Card_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Mark Card Status');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table datatable="ng" dt-options="dtOptions" class="table table-hover">
|
||||
<!-- <table id="datatable" class="table table-hover"> -->
|
||||
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Intial Payment Paid Date</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Roll NO</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
<th>Sem/Year</th>
|
||||
@ -120,18 +108,19 @@
|
||||
</thead>
|
||||
<tbody dir-paginate="p in markcard_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.bdate}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}({{p.sem}})</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.balance}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.cdate}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Initial_paid_date}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_id}}</td>
|
||||
<td>{{p.Roll_NO}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}({{p.Sem}})</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Balance_Fee}}</td>
|
||||
<td>{{p.Status}}</td>
|
||||
<td>{{p.Date}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
@ -16,17 +16,13 @@
|
||||
cursor: pointer;
|
||||
} */
|
||||
</style>
|
||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
||||
|
||||
|
||||
</script>
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
<div ng-controller="report_study_material_statusCtrl" ng-init="filters()">
|
||||
<form name="Form" id="form" novalidate ng-submit="onSubmit()" method="post">
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
@ -89,44 +85,45 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Study_material_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Study Material Status');">
|
||||
<!-- <a download="Study_material_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Study Material Status');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
|
||||
</a> -->
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<div id="data" class="table-responsive">
|
||||
<table class="table table-hover" style="font-size:0.9em;">
|
||||
<!-- <table datatable="" class="table table-hover">-->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Initial Payment Paid Date</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
<th>Sem/Year</th>
|
||||
<th>Phone No</th>
|
||||
<th>University</th>
|
||||
<th>Balance Fee</th>
|
||||
<th>Study Material Status</th>
|
||||
<th>Balance Fee</th>
|
||||
<th>Date</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody dir-paginate="p in study_mat_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.bdate}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}({{p.sem}})</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.uname}}</td>
|
||||
<td>{{p.balance}}</td>
|
||||
<td>{{p.status}}</td>
|
||||
<td>{{p.date}}</td>
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Initial_paid_date}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_name}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}({{p.Sem}})</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.University}}</td>
|
||||
<td>{{p.Balance_fee}}</td>
|
||||
<td>{{p.Status}}</td>
|
||||
<td>{{p.Date}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
@ -16,8 +16,6 @@
|
||||
cursor: pointer;
|
||||
} */
|
||||
</style>
|
||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
||||
|
||||
|
||||
</script>
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
@ -75,19 +73,23 @@
|
||||
</form>
|
||||
<!-- <pre>{{statusr | json}}</pre> -->
|
||||
<div style="text-align: right;">
|
||||
<a download="Waiver_referal_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Waiver Referal');">
|
||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||
</a>
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="8"></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th colspan="2">Sum of Waiver Fee</th>
|
||||
<th colspan="2">Sum of Referal Fee</th>
|
||||
<th></th>
|
||||
@ -95,7 +97,7 @@
|
||||
|
||||
<tr>
|
||||
<th>SL.No</th>
|
||||
<th>Student ID</th>
|
||||
<th>Enrollment ID</th>
|
||||
<th>Student Name</th>
|
||||
<th>Father Name</th>
|
||||
<th>Course</th>
|
||||
@ -112,26 +114,39 @@
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody dir-paginate="p in waiver_referal_data|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.sl}}</td>
|
||||
<td>{{p.ssid}}</td>
|
||||
<td>{{p.name}}</td>
|
||||
<td>{{p.father}}</td>
|
||||
<td>{{p.course}}</td>
|
||||
<td>{{p.syear}}</td>
|
||||
<td>{{p.phone}}</td>
|
||||
<td>{{p.waiver_bill}}</td>
|
||||
<td>{{p.waiver}}</td>
|
||||
<td>{{p.referal_bill}}</td>
|
||||
<td>{{p.referal}}</td>
|
||||
<td>{{p.cmts}}</td>
|
||||
<tbody ng-init="total = 0">
|
||||
<tr dir-paginate="p in waiver_referal_data|filter:search:strict|itemsPerPage:10">
|
||||
<td>{{p.SL_NO}}</td>
|
||||
<td>{{p.Enrollment_id}}</td>
|
||||
<td>{{p.Student_name}}</td>
|
||||
<td>{{p.Father_name}}</td>
|
||||
<td>{{p.Course_name}}</td>
|
||||
<td>{{p.Sem_year}}</td>
|
||||
<td>{{p.Phone_number}}</td>
|
||||
<td>{{p.Waiver_bill}}</td>
|
||||
<td>{{p.Waiver_amount}}</td>
|
||||
<td>{{p.Referal_bill}}</td>
|
||||
<td>{{p.Referal_amount}}</td>
|
||||
<td>{{p.Comments}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<td>Total</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{{ getwaiver() }}</td>
|
||||
<td></td>
|
||||
<td>{{ getref() }}</td>
|
||||
<td></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
<h3 style="text-align:center;">{{message}}</h3>
|
||||
|
||||
|
||||
@ -116,6 +116,9 @@
|
||||
<!--<script src="bower_components/generate-PDF/pdfmake.min.js"></script>
|
||||
<script src="bower_components/generate-PDF/html2canvas.min.js"></script>-->
|
||||
<script src="bower_components/generate-PDF/kendo.all.min.js"></script>
|
||||
<!--Export Excel for reports-->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/alasql/0.4.2/alasql.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.9.2/xlsx.core.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user