Explorar el Código

更新财务对账时金额的计算方法

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@10150 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq hace 8 años
padre
commit
432df943ab
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/main/webapp/resources/js/index/app.js

+ 3 - 2
src/main/webapp/resources/js/index/app.js

@@ -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;
 						}