setfees
This commit is contained in:
parent
84c0f1fc62
commit
a1439385c9
@ -1070,8 +1070,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
else{
|
else{
|
||||||
$scope.convertGetDate=new Date($rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].DueDate).toDateString();
|
$scope.convertGetDate=new Date($rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].DueDate).toDateString();
|
||||||
$scope.pushDueDate = $filter('date')(new Date($scope.convertGetDate), 'dd-MM-yyyy');
|
$scope.pushDueDate = $filter('date')(new Date($scope.convertGetDate), 'dd-MM-yyyy');
|
||||||
|
}
|
||||||
}
|
|
||||||
var MoreInsAmt= Math.round($rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].Amount * 50 / 100);
|
var MoreInsAmt= Math.round($rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].Amount * 50 / 100);
|
||||||
var afterMoreInsAmt = parseInt($rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].Amount)-parseInt(MoreInsAmt);
|
var afterMoreInsAmt = parseInt($rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].Amount)-parseInt(MoreInsAmt);
|
||||||
$rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].Amount = MoreInsAmt;
|
$rootScope.updateMoreItems[$rootScope.updateMoreItems.length-1].Amount = MoreInsAmt;
|
||||||
@ -1374,8 +1373,9 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
startPayableAmt = parseInt(totAmt);
|
startPayableAmt = parseInt(totAmt);
|
||||||
var percentage = Math.round(startPayableAmt * 70 / 100);
|
var percentage = Math.round(startPayableAmt * 70 / 100);
|
||||||
percentage = Math.round(percentage / 10) * 10;
|
percentage = Math.round(percentage / 10) * 10;
|
||||||
startPayableAmt = startPayableAmt - percentage;
|
|
||||||
|
|
||||||
|
startPayableAmt = startPayableAmt - percentage;
|
||||||
|
// alert(startPayableAmt);
|
||||||
$scope.insFirstDate = $filter('date')(new Date(cDate), 'dd-MM-yyyy');
|
$scope.insFirstDate = $filter('date')(new Date(cDate), 'dd-MM-yyyy');
|
||||||
$scope.insSecondDate = $filter('date')(new Date(cDate), 'dd-MM-yyyy');
|
$scope.insSecondDate = $filter('date')(new Date(cDate), 'dd-MM-yyyy');
|
||||||
|
|
||||||
@ -1389,7 +1389,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
startPayableAmt = Math.round(startPayableAmt / 10) * 10;
|
startPayableAmt = Math.round(startPayableAmt);
|
||||||
$scope.updateMoreItems.push({
|
$scope.updateMoreItems.push({
|
||||||
ID: "",
|
ID: "",
|
||||||
Name: installmentService.installmentWords(i),
|
Name: installmentService.installmentWords(i),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user