Browse Source

对账时每条明细先保留两位小数再进行计算

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@9767 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 8 years ago
parent
commit
e21bf0d27b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/webapp/resources/js/index/app.js

+ 1 - 1
src/main/webapp/resources/js/index/app.js

@@ -7914,7 +7914,7 @@ 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);
+							$scope.totalMoney += ((check.thisCheckQty || 0)*(check.orderPrice || 0)).toFixed(2);
 						}else{
 							$scope.totalMoney += 0;
 						}