add comment field and change the batch date
This commit is contained in:
parent
4eb79c9e04
commit
a88890c5e1
@ -248,10 +248,12 @@ class Fees_Status_Controller extends REST_Controller {
|
|||||||
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
||||||
$details['BatchCode'] = $this->post('batchCode');
|
$details['BatchCode'] = $this->post('batchCode');
|
||||||
$details['BranchCode'] = $this->post('branchCode');
|
$details['BranchCode'] = $this->post('branchCode');
|
||||||
|
$details['Comments'] = $this->post('comments');
|
||||||
$jsonInstallmenData = $this->post('installmentItems');
|
$jsonInstallmenData = $this->post('installmentItems');
|
||||||
|
//print_r($details);
|
||||||
$updateDetails = $this->Fees_model->setFees($details,$jsonInstallmenData);// Check if the users data store contains users (in case the database result returns NULL)
|
$updateDetails = $this->Fees_model->setFees($details,$jsonInstallmenData);// Check if the users data store contains users (in case the database result returns NULL)
|
||||||
|
|
||||||
|
|
||||||
if ($updateDetails)
|
if ($updateDetails)
|
||||||
{
|
{
|
||||||
$updateDetails['status'] = REST_Controller::HTTP_OK;
|
$updateDetails['status'] = REST_Controller::HTTP_OK;
|
||||||
|
|||||||
@ -81,7 +81,7 @@ class Fees_status_model extends CI_Model
|
|||||||
* */
|
* */
|
||||||
public function getStudentFeesStructure($student=null){
|
public function getStudentFeesStructure($student=null){
|
||||||
$this->db->distinct();
|
$this->db->distinct();
|
||||||
$this->db->select('CF.ID,CF.Sem_Year,CF.ProgramType,SFS.FeesID,SFS.CourseID,SFS.CourseFees,SFS.STFOrWR,SFS.Waiver,SFS.Others,SFS.RollNo,CU.PC,CU.TC,CU.DC,CU.MC,CU.OtherFees,SM.SessionName as SessionName,SM1.SessionName as ToSessionName,BA.BatchCode,BA.BatchName');
|
$this->db->select('CF.ID,CF.Sem_Year,CF.ProgramType,SFS.FeesID,SFS.CourseID,SFS.CourseFees,SFS.STFOrWR,SFS.Comments,SFS.Waiver,SFS.Others,SFS.RollNo,CU.PC,CU.TC,CU.DC,CU.MC,CU.OtherFees,SM.SessionName as SessionName,SM1.SessionName as ToSessionName,BA.BatchCode,BA.BatchName');
|
||||||
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
||||||
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
||||||
$this->db->join(SESSIONMASTER.' as SM1', 'SM1.SessionID = SFS.ToSessionName','left');
|
$this->db->join(SESSIONMASTER.' as SM1', 'SM1.SessionID = SFS.ToSessionName','left');
|
||||||
@ -102,6 +102,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$fetchData['ProgramType'] = $row->ProgramType;
|
$fetchData['ProgramType'] = $row->ProgramType;
|
||||||
$fetchData['ActualFees'] = $row->CourseFees;
|
$fetchData['ActualFees'] = $row->CourseFees;
|
||||||
$fetchData['STFOrWR'] = $row->STFOrWR;
|
$fetchData['STFOrWR'] = $row->STFOrWR;
|
||||||
|
$fetchData['Comments'] = $row->Comments;
|
||||||
$fetchData['Waiver'] = $row->Waiver;
|
$fetchData['Waiver'] = $row->Waiver;
|
||||||
$fetchData['Others'] = $row->Others;
|
$fetchData['Others'] = $row->Others;
|
||||||
$fetchData['SessionName'] = $row->SessionName;
|
$fetchData['SessionName'] = $row->SessionName;
|
||||||
@ -182,7 +183,7 @@ class Fees_status_model extends CI_Model
|
|||||||
{
|
{
|
||||||
$serachArray = ["PC","TC","DC","MC","OTHER"];
|
$serachArray = ["PC","TC","DC","MC","OTHER"];
|
||||||
|
|
||||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.CourseID,SFS.CourseFees,SFS.STFOrWR,SFS.Waiver,SFS.Others,SFS.SessionName,SFS.RollNo,CU.PC,CU.TC,CU.DC,CU.MC,CU.OtherFees');
|
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.CourseID,SFS.CourseFees,SFS.STFOrWR,SFS.Comments,SFS.Waiver,SFS.Others,SFS.SessionName,SFS.RollNo,CU.PC,CU.TC,CU.DC,CU.MC,CU.OtherFees');
|
||||||
$this->db->from(STUDENTS_FEES_STATUS . ' as SFS');
|
$this->db->from(STUDENTS_FEES_STATUS . ' as SFS');
|
||||||
//$this->db->join(COURSE_FEES.' as CF', 'CF.ID = SFS.FeesType');
|
//$this->db->join(COURSE_FEES.' as CF', 'CF.ID = SFS.FeesType');
|
||||||
$this->db->join(COURSE . ' as CU', 'CU.CourseID = SFS.CourseID');
|
$this->db->join(COURSE . ' as CU', 'CU.CourseID = SFS.CourseID');
|
||||||
@ -201,6 +202,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$fetchData['ProgramType'] = $row->FeesType;
|
$fetchData['ProgramType'] = $row->FeesType;
|
||||||
$fetchData['ActualFees'] = $row->CourseFees;
|
$fetchData['ActualFees'] = $row->CourseFees;
|
||||||
$fetchData['STFOrWR'] = $row->STFOrWR;
|
$fetchData['STFOrWR'] = $row->STFOrWR;
|
||||||
|
$fetchData['Comments'] = $row->Comments;
|
||||||
$fetchData['Waiver'] = $row->Waiver;
|
$fetchData['Waiver'] = $row->Waiver;
|
||||||
$fetchData['Others'] = $row->Others;
|
$fetchData['Others'] = $row->Others;
|
||||||
$fetchData['SessionName'] = "Not Applicable";
|
$fetchData['SessionName'] = "Not Applicable";
|
||||||
@ -245,7 +247,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$serachArray=[WAIVER,REFERRAL];
|
$serachArray=[WAIVER,REFERRAL];
|
||||||
|
|
||||||
$this->db->distinct();
|
$this->db->distinct();
|
||||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,CF.Sem_Year,STC.EnrollmentID,US.UniversityName,US.UniversityShortName,SM.SessionName,SM1.SessionName as ToSessionName,CF.ProgramType,BA.BatchCode,BA.BatchName');
|
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.RollNo,SFS.Comments,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,CF.Sem_Year,STC.EnrollmentID,US.UniversityName,US.UniversityShortName,SM.SessionName,SM1.SessionName as ToSessionName,CF.ProgramType,BA.BatchCode,BA.BatchName');
|
||||||
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
||||||
$this->db->join(STUDENTS_FEES_STATUS.' as SFS','SFP.FeesId = SFS.FeesID');
|
$this->db->join(STUDENTS_FEES_STATUS.' as SFS','SFP.FeesId = SFS.FeesID');
|
||||||
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
||||||
@ -282,6 +284,7 @@ class Fees_status_model extends CI_Model
|
|||||||
|
|
||||||
$storePaidDetails['RollNo'] = $feeRow->RollNo;
|
$storePaidDetails['RollNo'] = $feeRow->RollNo;
|
||||||
$storePaidDetails['STFOrWR'] = $feeRow->STFOrWR;
|
$storePaidDetails['STFOrWR'] = $feeRow->STFOrWR;
|
||||||
|
$storePaidDetails['Comments'] = $feeRow->Comments;
|
||||||
$storePaidDetails['Waiver'] = $feeRow->Waiver;
|
$storePaidDetails['Waiver'] = $feeRow->Waiver;
|
||||||
$storePaidDetails['Others'] = $feeRow->Others;
|
$storePaidDetails['Others'] = $feeRow->Others;
|
||||||
$storePaidDetails['PayableAmount'] = $feeRow->CourseFees+$feeRow->STFOrWR+$feeRow->Others-$feeRow->Waiver;
|
$storePaidDetails['PayableAmount'] = $feeRow->CourseFees+$feeRow->STFOrWR+$feeRow->Others-$feeRow->Waiver;
|
||||||
@ -362,7 +365,7 @@ class Fees_status_model extends CI_Model
|
|||||||
public function existStudentCourseDefaultFees($student=null){
|
public function existStudentCourseDefaultFees($student=null){
|
||||||
$serachArray = ["PC","TC","DC","MC","OTHER"];
|
$serachArray = ["PC","TC","DC","MC","OTHER"];
|
||||||
$this->db->distinct();
|
$this->db->distinct();
|
||||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.SessionName,SFS.ToSessionName,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,STC.EnrollmentID,US.UniversityName,US.UniversityShortName');
|
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.Comments,SFS.SessionName,SFS.ToSessionName,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,STC.EnrollmentID,US.UniversityName,US.UniversityShortName');
|
||||||
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
||||||
$this->db->join(STUDENTS_FEES_STATUS.' as SFS','SFP.FeesId = SFS.FeesID');
|
$this->db->join(STUDENTS_FEES_STATUS.' as SFS','SFP.FeesId = SFS.FeesID');
|
||||||
$this->db->join(STUDENTS.' as ST', 'ST.StudentID = SFS.StudentID');
|
$this->db->join(STUDENTS.' as ST', 'ST.StudentID = SFS.StudentID');
|
||||||
@ -389,6 +392,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$storePaidDetails['ToSessionName'] = "Not Applicable";
|
$storePaidDetails['ToSessionName'] = "Not Applicable";
|
||||||
$storePaidDetails['BatchName'] = "Not Applicable";
|
$storePaidDetails['BatchName'] = "Not Applicable";
|
||||||
$storePaidDetails['RollNo'] = $feeRow->RollNo;
|
$storePaidDetails['RollNo'] = $feeRow->RollNo;
|
||||||
|
$storePaidDetails['Comments'] = $feeRow->Comments;
|
||||||
$storePaidDetails['STFOrWR'] = $feeRow->STFOrWR;
|
$storePaidDetails['STFOrWR'] = $feeRow->STFOrWR;
|
||||||
$storePaidDetails['Waiver'] = $feeRow->Waiver;
|
$storePaidDetails['Waiver'] = $feeRow->Waiver;
|
||||||
$storePaidDetails['Others'] = $feeRow->Others;
|
$storePaidDetails['Others'] = $feeRow->Others;
|
||||||
@ -734,7 +738,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$result_array['feesStatus']=true;
|
$result_array['feesStatus']=true;
|
||||||
foreach ($feesDetails->result() as $row){
|
foreach ($feesDetails->result() as $row){
|
||||||
$SNoValue=$SNoValue+1;
|
$SNoValue=$SNoValue+1;
|
||||||
$this->db->select('SFS.FeesID,SFS.CourseFees,SFS.STFOrWR,SFS.Waiver,SFS.Others,SFS.SessionName,SFS.ToSessionName,SFS.RollNo,SFS.BatchCode,SM.SessionName as MasterSessionName,SM1.SessionName as MasterToSessionName');
|
$this->db->select('SFS.FeesID,SFS.CourseFees,SFS.Comments,SFS.STFOrWR,SFS.Waiver,SFS.Others,SFS.SessionName,SFS.ToSessionName,SFS.RollNo,SFS.BatchCode,SM.SessionName as MasterSessionName,SM1.SessionName as MasterToSessionName');
|
||||||
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
||||||
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
||||||
$this->db->join(SESSIONMASTER.' as SM1', 'SM1.SessionID = SFS.ToSessionName','left');
|
$this->db->join(SESSIONMASTER.' as SM1', 'SM1.SessionID = SFS.ToSessionName','left');
|
||||||
@ -752,6 +756,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$fetchData['ActualFees']=$existData[0]->CourseFees;
|
$fetchData['ActualFees']=$existData[0]->CourseFees;
|
||||||
$fetchData['BatchCode']=$existData[0]->BatchCode;
|
$fetchData['BatchCode']=$existData[0]->BatchCode;
|
||||||
$fetchData['STFOrWR']=$existData[0]->STFOrWR;
|
$fetchData['STFOrWR']=$existData[0]->STFOrWR;
|
||||||
|
$fetchData['Comments']=$existData[0]->Comments;
|
||||||
$fetchData['Waiver']=$existData[0]->Waiver;
|
$fetchData['Waiver']=$existData[0]->Waiver;
|
||||||
$fetchData['Others']=$existData[0]->Others;
|
$fetchData['Others']=$existData[0]->Others;
|
||||||
$fetchData['SessionName']=$existData[0]->SessionName;
|
$fetchData['SessionName']=$existData[0]->SessionName;
|
||||||
@ -980,7 +985,7 @@ class Fees_status_model extends CI_Model
|
|||||||
|
|
||||||
// default course fees details in student status
|
// default course fees details in student status
|
||||||
foreach ($myArray as $row1){
|
foreach ($myArray as $row1){
|
||||||
$this->db->select('FeesID,CourseFees,STFOrWR,Waiver,Others,SessionName,ToSessionName,RollNo');
|
$this->db->select('FeesID,CourseFees,STFOrWR,Waiver,Comments,Others,SessionName,ToSessionName,RollNo');
|
||||||
$this->db->where('StudentID',$student['StudentID']);
|
$this->db->where('StudentID',$student['StudentID']);
|
||||||
$this->db->where('CourseID',$student['CourseID']);
|
$this->db->where('CourseID',$student['CourseID']);
|
||||||
$this->db->where('FeesType',$row1['Sem_Year']);
|
$this->db->where('FeesType',$row1['Sem_Year']);
|
||||||
@ -995,6 +1000,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$fetchData['Sem_Year']=$row1['Sem_Year'];
|
$fetchData['Sem_Year']=$row1['Sem_Year'];
|
||||||
$fetchData['ActualFees']=$existData[0]->CourseFees;
|
$fetchData['ActualFees']=$existData[0]->CourseFees;
|
||||||
$fetchData['STFOrWR']=$existData[0]->STFOrWR;
|
$fetchData['STFOrWR']=$existData[0]->STFOrWR;
|
||||||
|
$fetchData['Comments']=$existData[0]->Comments;
|
||||||
$fetchData['Waiver']=$existData[0]->Waiver;
|
$fetchData['Waiver']=$existData[0]->Waiver;
|
||||||
$fetchData['Others']=$existData[0]->Others;
|
$fetchData['Others']=$existData[0]->Others;
|
||||||
$fetchData['SessionName']=$existData[0]->SessionName;
|
$fetchData['SessionName']=$existData[0]->SessionName;
|
||||||
@ -1064,6 +1070,7 @@ class Fees_status_model extends CI_Model
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
public function setFees($details=null,$jsonData=null){
|
public function setFees($details=null,$jsonData=null){
|
||||||
|
|
||||||
$this->db->select('FeesID');
|
$this->db->select('FeesID');
|
||||||
$this->db->where('CourseID', $details['CourseID']);
|
$this->db->where('CourseID', $details['CourseID']);
|
||||||
$this->db->where('StudentID', $details['StudentID']);
|
$this->db->where('StudentID', $details['StudentID']);
|
||||||
@ -1076,6 +1083,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$updateDetails['BatchCode'] = $details['BatchCode'];
|
$updateDetails['BatchCode'] = $details['BatchCode'];
|
||||||
$updateDetails['RollNo'] = $details['RollNo'];
|
$updateDetails['RollNo'] = $details['RollNo'];
|
||||||
$updateDetails['STFOrWR'] = $details['STFOrWR'];
|
$updateDetails['STFOrWR'] = $details['STFOrWR'];
|
||||||
|
$updateDetails['Comments'] = $details['Comments'];
|
||||||
$updateDetails['Waiver'] = $details['Waiver'];
|
$updateDetails['Waiver'] = $details['Waiver'];
|
||||||
$updateDetails['Others'] = $details['Others'];
|
$updateDetails['Others'] = $details['Others'];
|
||||||
$updateDetails['UpdatedOn'] = $details['CreatedOn'];
|
$updateDetails['UpdatedOn'] = $details['CreatedOn'];
|
||||||
|
|||||||
@ -233,7 +233,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID)){
|
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID)){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -254,7 +254,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -291,7 +291,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if(svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID || $scope.feesStructureInfo[0].ToSessionName==svalues.SessionID){
|
if(svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID || $scope.feesStructureInfo[0].ToSessionName==svalues.SessionID){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
|
|
||||||
$scope.sessionDetailsTo.push({
|
$scope.sessionDetailsTo.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -331,7 +331,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName ,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -366,7 +366,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if(svalues.IsActive=='1' ){
|
if(svalues.IsActive=='1' ){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -384,7 +384,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if(svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID || $scope.feesStructureInfo[0].ToSessionName==svalues.SessionID){
|
if(svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID || $scope.feesStructureInfo[0].ToSessionName==svalues.SessionID){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName ,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -392,7 +392,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
|
|
||||||
$scope.sessionDetailsTo.push({
|
$scope.sessionDetailsTo.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName ,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -472,6 +472,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
billDate: $scope.billDate,
|
billDate: $scope.billDate,
|
||||||
billAmount:updateModel.billAmount,
|
billAmount:updateModel.billAmount,
|
||||||
modeOfPayment: updateModel.paymentOn.paymentOn,
|
modeOfPayment: updateModel.paymentOn.paymentOn,
|
||||||
|
|
||||||
commentsForStudent: updateModel.studComments,
|
commentsForStudent: updateModel.studComments,
|
||||||
internalComments: updateModel.internalComments,
|
internalComments: updateModel.internalComments,
|
||||||
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||||
@ -519,6 +520,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
* set fees for student
|
* set fees for student
|
||||||
* */
|
* */
|
||||||
$scope.submitFeesForStudent = function (myModel,form,updateModel,loading) {
|
$scope.submitFeesForStudent = function (myModel,form,updateModel,loading) {
|
||||||
|
|
||||||
var firstError = null;
|
var firstError = null;
|
||||||
if (form.$invalid) {
|
if (form.$invalid) {
|
||||||
var field = null, firstError = null;
|
var field = null, firstError = null;
|
||||||
@ -614,8 +616,6 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
$scope.ldloading5 = {};
|
$scope.ldloading5 = {};
|
||||||
|
|
||||||
$scope.ldloading5[loading.replace('-', '_')] = true;
|
$scope.ldloading5[loading.replace('-', '_')] = true;
|
||||||
|
|
||||||
|
|
||||||
var updateFees = {
|
var updateFees = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'setFeesForStudent/',
|
url: apiPoint.url + 'setFeesForStudent/',
|
||||||
@ -628,6 +628,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
courseAmount:updateModel.ActualFees,
|
courseAmount:updateModel.ActualFees,
|
||||||
feesID: updateModel.ID,
|
feesID: updateModel.ID,
|
||||||
STFWR:updateModel.STFOrWR,
|
STFWR:updateModel.STFOrWR,
|
||||||
|
comments:updateModel.Comments,
|
||||||
waiver: updateModel.Waiver,
|
waiver: updateModel.Waiver,
|
||||||
other: updateModel.Others,
|
other: updateModel.Others,
|
||||||
session: updateModel.SessionName,
|
session: updateModel.SessionName,
|
||||||
@ -800,7 +801,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
angular.forEach($scope.masterSessionDetails,function (svalues,skey) {
|
angular.forEach($scope.masterSessionDetails,function (svalues,skey) {
|
||||||
if(svalues.IsActive=='1'){
|
if(svalues.IsActive=='1'){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -841,7 +842,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
if(svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID || $scope.feesStructureInfo[0].ToSessionName==svalues.SessionID){
|
if(svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID || $scope.feesStructureInfo[0].ToSessionName==svalues.SessionID){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName ,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -849,7 +850,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
|
|
||||||
$scope.sessionDetailsTo.push({
|
$scope.sessionDetailsTo.push({
|
||||||
"SessionName":svalues.SessionName +'('+svalues.SessionDate+')',
|
"SessionName":svalues.SessionName ,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -196,36 +196,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- <div class="col-md-4 form-group"
|
|
||||||
ng-class="{'has-error':Form.paid.$dirty && Form.total.$invalid}">
|
|
||||||
<label>
|
|
||||||
Paid Fees</span>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Paid Amount"
|
|
||||||
autofocus tabindex="13" class="form-control" name="paid" id="paid" ng-maxlength="9"
|
|
||||||
ng-model="setModel.total" ng-pattern="/^[0-9]*$/"/>
|
|
||||||
|
|
||||||
<span class="error text-small block"
|
|
||||||
ng-if="Form.paid.$error.maxlength || Form.paid.$error.pattern">Enter a valid amount</span>
|
|
||||||
|
|
||||||
</div>-->
|
|
||||||
<!-- <div class="col-md-3 form-group" ng-if="setModel.feesType.ProgramType!='P001' && setModel.feesType.ProgramType!='P002'"
|
|
||||||
ng-class="{'has-error':Form.waiver.$dirty && Form.waiver.$invalid}">
|
|
||||||
<label>
|
|
||||||
Waiver</span>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Waiver Amount"
|
|
||||||
autofocus tabindex="14" class="form-control" name="waiver" id="waiver" ng-maxlength="9"
|
|
||||||
ng-model="setModel.feesType.Waiver" ng-pattern="/^[0-9]*$/" ng-change="setFeesTotalAmount(setModel.feesType,'2','2');" ng-disabled="setModel.feesType.ExistValue=='1' && userType=='R002'"/>
|
|
||||||
<span class="error text-small block"
|
|
||||||
ng-if="Form.waiver.$dirty && Form.waiver.$invalid"
|
|
||||||
ng-hide="Form.waiver.$error.maxlength || Form.waiver.$error.pattern">Waiver amount is required</span>
|
|
||||||
<span class="error text-small block"
|
|
||||||
ng-if="Form.waiver.$error.maxlength || Form.waiver.$error.pattern">Enter a valid amount</span>
|
|
||||||
|
|
||||||
</div>-->
|
|
||||||
<div class="col-md-3 form-group" ng-if="setModel.feesType.ProgramType!='P001' && setModel.feesType.ProgramType!='P002'"
|
<div class="col-md-3 form-group" ng-if="setModel.feesType.ProgramType!='P001' && setModel.feesType.ProgramType!='P002'"
|
||||||
ng-class="{'has-error':Form.total.$dirty && Form.total.$invalid}">
|
ng-class="{'has-error':Form.total.$dirty && Form.total.$invalid}">
|
||||||
<label>
|
<label>
|
||||||
@ -245,22 +216,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!--<div class="col-md-3 form-group" ng-if="setModel.feesType.ProgramType=='P001' || setModel.feesType.ProgramType=='P002'"
|
|
||||||
ng-class="{'has-error':Form.waiver.$dirty && Form.waiver.$invalid}">
|
|
||||||
<label>
|
|
||||||
Waiver</span>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Waiver Amount"
|
|
||||||
autofocus tabindex="14" class="form-control" name="waiver" id="waiver" ng-maxlength="9"
|
|
||||||
ng-model="setModel.feesType.Waiver" ng-pattern="/^[0-9]*$/" ng-change="setFeesTotalAmount(setModel.feesType,'2','2');" ng-disabled="setModel.feesType.ExistValue=='1' && userType=='R002'"/>
|
|
||||||
<span class="error text-small block"
|
|
||||||
ng-if="Form.waiver.$dirty && Form.waiver.$invalid"
|
|
||||||
ng-hide="Form.waiver.$error.maxlength || Form.waiver.$error.pattern">Waiver amount is required</span>
|
|
||||||
<span class="error text-small block"
|
|
||||||
ng-if="Form.waiver.$error.maxlength || Form.waiver.$error.pattern">Enter a valid amount</span>
|
|
||||||
|
|
||||||
</div>-->
|
|
||||||
<div class="col-md-3 form-group" ng-if="setModel.feesType.ProgramType=='P001' || setModel.feesType.ProgramType=='P002'"
|
<div class="col-md-3 form-group" ng-if="setModel.feesType.ProgramType=='P001' || setModel.feesType.ProgramType=='P002'"
|
||||||
ng-class="{'has-error':Form.total.$dirty && Form.total.$invalid}">
|
ng-class="{'has-error':Form.total.$dirty && Form.total.$invalid}">
|
||||||
<label>
|
<label>
|
||||||
@ -277,6 +233,15 @@
|
|||||||
ng-if="Form.total.$error.maxlength || Form.total.$error.pattern">Enter a valid amount</span>
|
ng-if="Form.total.$error.maxlength || Form.total.$error.pattern">Enter a valid amount</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3 form-group"
|
||||||
|
ng-class="{'has-error':Form.comments.$dirty && Form.comments.$invalid}">
|
||||||
|
<label>
|
||||||
|
Comments
|
||||||
|
</label>
|
||||||
|
<textarea maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control" name="Comments" id="Comments" ng-model="setModel.feesType.Comments"></textarea>
|
||||||
|
<span class="text-small block">Max 100 Characters.</span>
|
||||||
|
<!--<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>-->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" ng-if="updateMoreItems.length>=1">
|
<div class="row" ng-if="updateMoreItems.length>=1">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user