fees paid counts added in db for report
This commit is contained in:
parent
7b6373f81b
commit
a130e672c7
@ -498,6 +498,13 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
}
|
}
|
||||||
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
||||||
} else {
|
} 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 = {};
|
||||||
|
|
||||||
$scope.ldloading[loading.replace('-', '_')] = true;
|
$scope.ldloading[loading.replace('-', '_')] = true;
|
||||||
@ -519,7 +526,6 @@ 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,
|
||||||
@ -529,7 +535,8 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
course: myModel.CourseName,
|
course: myModel.CourseName,
|
||||||
//statusCode: updateModel.statusCode,
|
//statusCode: updateModel.statusCode,
|
||||||
requestedBranch : JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
requestedBranch : JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||||
currentBalance : $scope.currentBalance
|
currentBalance : $scope.currentBalance,
|
||||||
|
existPaidCount : $scope.existPaidCount
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user