set fee change

This commit is contained in:
venbatechnologies@gmail.com 2018-10-11 13:20:54 +05:30
parent 765dc84acf
commit cce4618ad3

View File

@ -303,7 +303,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
$scope.changeSessions = function (details,type) {
if(details.SessionName!=undefined && details.SessionName!=''){
console.log('if');
//console.log('if');
$scope.sessionDetails=[];
$scope.sessionDetailsTo=[];
if(type==1){
@ -363,7 +363,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
});
console.log($scope.sessionDetails)
// console.log($scope.sessionDetails)
}
// after branch changes
@ -904,9 +904,9 @@ $scope.setModel.feesType.SessionName = $scope.sessionDetails[0].SessionID;
// console.log(response.data.sessionDetails);
$scope.setfeedetails=response.data.feesetDetails;
console.log($scope.setfeedetails);
//console.log($scope.setfeedetails);
$scope.masterSessionDetails =response.data.sessionDetails;
console.log($scope.masterSessionDetails);
//console.log($scope.masterSessionDetails);
if($scope.setfeedetails.length != 0)
{
@ -957,7 +957,7 @@ $scope.setModel.feesType.SessionName = $scope.sessionDetails[0].SessionID;
//$scope.setModel.feesType = $scope.feesStructureInfo[lastval];
console.log($scope.lastsetfee);
//console.log($scope.lastsetfee);
$scope.setModel = {
"feesType": $scope.feesStructureInfo[$scope.lastsetfee],
@ -979,7 +979,7 @@ $scope.setModel.feesType.SessionName = $scope.sessionDetails[0].SessionID;
if($scope.feesStructureInfo[$scope.lastsetfee].InstallmentDetails == '') {
console.log('in')
//console.log('in')
$scope.obj = $scope.feesStructureInfo[$scope.lastsetfee].batchDetails.find(x => x.IsDefault == true);
if($scope.obj==undefined || $scope.obj=='' || $scope.obj==null){
@ -1017,7 +1017,7 @@ $scope.setModel.feesType.SessionName = $scope.sessionDetails[0].SessionID;
else {
console.log('in else')
//console.log('in else')
/* $scope.myModelInstallemt.ID=$scope.feesStructureInfo[0].InstallmentDetails[$scope.feesStructureInfo[0].InstallmentDetails.length-1].ID;
$scope.myModelInstallemt.name=$scope.feesStructureInfo[0].InstallmentDetails[$scope.feesStructureInfo[0].InstallmentDetails.length-1].Name;