|
|
@@ -7847,7 +7847,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}]);
|
|
|
|
|
|
//未对账单据列表
|
|
|
- app.controller('PurchaseApCheckListCtrl',['$scope', 'FaApCheck', 'toaster', '$state','$filter', '$modal', 'Vendor', function($scope, FaApCheck, toaster, $state, $filter, $modal, Vendor){
|
|
|
+ app.controller('PurchaseApCheckListCtrl',['$scope', 'FaApCheck', 'toaster', '$state','$filter', '$modal', 'Vendor', 'DecimalNumber', function($scope, FaApCheck, toaster, $state, $filter, $modal, Vendor, DecimalNumber){
|
|
|
$scope.data = [];// 列表数据
|
|
|
|
|
|
$scope.condition = {
|
|
|
@@ -8002,7 +8002,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.totalMoney = 0;
|
|
|
angular.forEach($scope.data, function(check) {
|
|
|
if(check.$selected){
|
|
|
- $scope.totalMoney += ((check.thisCheckQty || 0)*(check.orderPrice || 0)).toFixed(2);
|
|
|
+ var price = DecimalNumber.accMul((check.thisCheckQty || 0), (check.orderPrice || 0));
|
|
|
+ $scope.totalMoney += Math.round(price*100)/100;
|
|
|
}else{
|
|
|
$scope.totalMoney += 0;
|
|
|
}
|