fees paid counts added in db for report

This commit is contained in:
gandhimathi 2018-05-22 11:34:14 +05:30
parent 7b6373f81b
commit a130e672c7

View File

@ -498,6 +498,13 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
}
angular.element('.ng-invalid[name=' + firstError + ']').focus();
} else {
// count exist payment length report purpose
$scope.existPaidCount=1;
angular.forEach($scope.existStudentFeesDetails,function (values) {
if(updateModel.feesType.FeesID==values.FeesID){
$scope.existPaidCount=parseInt($scope.existPaidCount)+parseInt(values.paidDetails.length);
}
});
$scope.ldloading = {};
$scope.ldloading[loading.replace('-', '_')] = true;
@ -519,7 +526,6 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
billDate: $scope.billDate,
billAmount:updateModel.billAmount,
modeOfPayment: updateModel.paymentOn.paymentOn,
commentsForStudent: updateModel.studComments,
internalComments: updateModel.internalComments,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
@ -529,7 +535,8 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
course: myModel.CourseName,
//statusCode: updateModel.statusCode,
requestedBranch : JSON.parse(localStorage.getItem('localObj')).localBranchID,
currentBalance : $scope.currentBalance
currentBalance : $scope.currentBalance,
existPaidCount : $scope.existPaidCount
}