fees status changes

This commit is contained in:
gandhimathi 2018-04-30 14:42:41 +05:30
parent 146a1238bf
commit ba93731724

View File

@ -418,6 +418,14 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
* created by kms * created by kms
* */ * */
$scope.saveFees = function (myModel, form,updateModel, loading) { $scope.saveFees = function (myModel, form,updateModel, loading) {
$scope.totBalanceFees = 0;
if(parseInt(updateModel.feesType.BalanceAmount) >= parseInt(updateModel.billAmount)){
$scope.totBalanceFees = parseInt(updateModel.feesType.BalanceAmount)-parseInt(updateModel.billAmount);
}
else{
$scope.totBalanceFees = 0;
}
if(isNaN(updateModel.date)){ if(isNaN(updateModel.date)){
$scope.billDate = updateModel.date; $scope.billDate = updateModel.date;
@ -472,7 +480,8 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
university: myModel.UniversityName, university: myModel.UniversityName,
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,
balanceFees : $scope.totBalanceFees
} }