fees issue changes
This commit is contained in:
parent
d62036f0bb
commit
8c214d4fdb
@ -1641,10 +1641,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
$rootScope.updateMoreItems[position].Amount = exitPayAmt;
|
$rootScope.updateMoreItems[position].Amount = exitPayAmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if($rootScope.updateMoreItems.length>2){
|
||||||
|
|
||||||
|
|
||||||
if($rootScope.updateMoreItems.length>2){
|
|
||||||
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
||||||
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
||||||
var currentElementAmt = $rootScope.updateMoreItems[key].Amount;
|
var currentElementAmt = $rootScope.updateMoreItems[key].Amount;
|
||||||
@ -1656,7 +1653,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}*/
|
||||||
existTotAmt = parseInt(existTotAmt)+parseInt($rootScope.updateMoreItems[position].Amount);
|
existTotAmt = parseInt(existTotAmt)+parseInt($rootScope.updateMoreItems[position].Amount);
|
||||||
|
|
||||||
|
|
||||||
@ -1734,7 +1731,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
$rootScope.updateMoreItems[0].Amount = existPercentage;
|
$rootScope.updateMoreItems[0].Amount = existPercentage;
|
||||||
$rootScope.updateMoreItems[1].Amount = exitPayAmt;
|
$rootScope.updateMoreItems[1].Amount = exitPayAmt;
|
||||||
|
|
||||||
if($rootScope.updateMoreItems.length>2){
|
/* if($rootScope.updateMoreItems.length>2){
|
||||||
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
||||||
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
||||||
var currentElementAmt = $rootScope.updateMoreItems[key].Amount;
|
var currentElementAmt = $rootScope.updateMoreItems[key].Amount;
|
||||||
@ -1746,7 +1743,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -1758,6 +1755,25 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
$rootScope.updateMoreItems[0].Amount = existPercentage;
|
$rootScope.updateMoreItems[0].Amount = existPercentage;
|
||||||
$rootScope.updateMoreItems[1].Amount = exitPayAmt;
|
$rootScope.updateMoreItems[1].Amount = exitPayAmt;
|
||||||
|
|
||||||
|
/* if($rootScope.updateMoreItems.length>2){
|
||||||
|
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
||||||
|
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
||||||
|
var currentElementAmt = $rootScope.updateMoreItems[key].Amount;
|
||||||
|
var dividePrevElementAmt = Math.round(currentElementAmt * 50 / 100);
|
||||||
|
var divideNextElementAmt = parseInt(currentElementAmt)-parseInt(dividePrevElementAmt);
|
||||||
|
$rootScope.updateMoreItems[key].Amount = dividePrevElementAmt;
|
||||||
|
$rootScope.updateMoreItems[key+1].Amount = dividePrevElementAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
if($rootScope.updateMoreItems.length>2){
|
if($rootScope.updateMoreItems.length>2){
|
||||||
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
angular.forEach($rootScope.updateMoreItems,function (values,key) {
|
||||||
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
if(key>=1 && $rootScope.updateMoreItems.length-1!=key){
|
||||||
@ -1772,11 +1788,6 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
if(checkPermission=='1'){
|
if(checkPermission=='1'){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user