i have table grid with one customer dropdown, and button(on click showing modal popup for pending values) two input values and + buton to add new row
am able to get pending data correctly on change, but
am substracting two values here, Amount and AmountAdjusted then binding that value in PendingAmount(span) .
am getting value, but when i adding row same value repeating
$scope.rvm = [{}];
$scope.ReceiptsViewModel = [];
$scope.GetAccountBalance = function (c) {
$scope.fetch = true;
var getPendingData = ReceiptsService.GetPendings(c);
getPendingData.then(function (d) {
$scope.ReceiptsViewModel = d.data;
//subtracting here
$scope.PendingAmount = $scope.ReceiptsViewModel[0].Amount - $scope.ReceiptsViewModel[0].AmountAdjusted;
$scope.fetch = false;
});
}
suman goudPosted Oct 4, 2016, 6:42 AM
Bikesh SrivastavaPosted Oct 4, 2016, 6:24 AM