This commit is contained in:
2016-08-04 21:12:15 +02:00
parent f64154e351
commit c9ac307153
+2 -2
View File
@@ -472,8 +472,8 @@ transactionControllers.controller('ImportListCtrl', [ '$scope', '$resource', '$l
if (match && $scope.matchers[j].textMatcher) if (match && $scope.matchers[j].textMatcher)
match = $scope.matchers[j].textMatcher($scope.csv[i][3]); match = $scope.matchers[j].textMatcher($scope.csv[i][3]);
if (match && $scope.matchers[j].amountMatcher) if (match && $scope.matchers[j].amountMatcher)
match = $scope.matchers[j].amountMatcher($scope.csv[i][4].toString().replace(',', '.')); match = $scope.matchers[j].amountMatcher($scope.csv[i][4].toString().replace('.', '').replace(',', '.'));
if (match) { if (match) {
$scope.csv[i].targetDescription = $scope.matchers[j].targetDescription; $scope.csv[i].targetDescription = $scope.matchers[j].targetDescription;
$scope.csv[i].matcherPosition = $scope.matchers[j].position; $scope.csv[i].matcherPosition = $scope.matchers[j].position;