This commit is contained in:
2016-08-04 21:19:08 +02:00
parent c9ac307153
commit dcbe836b1a
+1 -1
View File
@@ -495,7 +495,7 @@ transactionControllers.controller('ImportListCtrl', [ '$scope', '$resource', '$l
var newTransaction = new Transaction({ var newTransaction = new Transaction({
"account" : $scope.account._links.self.href, "account" : $scope.account._links.self.href,
"amount" : line[4].replace(',', '.'), "amount" : line[4].replace('.', '').replace(',', '.'),
"date" : new Date(line[1].substr(6,4) + "-" + line[1].substr(3,2) + "-" + line[1].substr(0,2)), "date" : new Date(line[1].substr(6,4) + "-" + line[1].substr(3,2) + "-" + line[1].substr(0,2)),
"description" : line.targetDescription != undefined ? line.targetDescription : '', "description" : line.targetDescription != undefined ? line.targetDescription : '',
"category" : line.targetCategory._links.self.href, "category" : line.targetCategory._links.self.href,