Hello Team,
Please am using angular controllerJS in my MVC application to Sum up item Quantity,SubTotal,DiscountPercent,VatPercent,TotalAmount but the columns value sum up higher value than expected, kindly help
function sumOfSalesDetails($scope) {
$.each($scope.PrintSalesRecordList.modifiedData, function (index, val) {
$scope.totalQty += val.Quantity;
$scope.subTotal += val.SubTotal;
$scope.DiscountTotal += val.DiscountPercent;
$scope.VatTotal += val.VatPercent;
$scope.Total += val.TotalAmount;
})
}
}]);
}).call(angular);