feesStatus send sms to students

This commit is contained in:
gandhimathi 2018-04-30 18:04:49 +05:30
parent d5ba40a6ab
commit 5eba2d7bda

View File

@ -418,12 +418,12 @@ 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; $scope.currentBalance = 0;
if(parseInt(updateModel.feesType.BalanceAmount) >= parseInt(updateModel.billAmount)){ if(parseInt(updateModel.feesType.BalanceAmount) >= parseInt(updateModel.billAmount)){
$scope.totBalanceFees = parseInt(updateModel.feesType.BalanceAmount)-parseInt(updateModel.billAmount); $scope.currentBalance = parseInt(updateModel.feesType.BalanceAmount)-parseInt(updateModel.billAmount);
} }
else{ else{
$scope.totBalanceFees = 0; $scope.currentBalance = 0;
} }
if(isNaN(updateModel.date)){ if(isNaN(updateModel.date)){
@ -481,7 +481,7 @@ 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,
balanceFees : $scope.totBalanceFees currentBalance : $scope.currentBalance
} }