diff --git a/pom.xml b/pom.xml index 12ca792..5bbcefa 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 de.tilman next-transactions - 1.5.1 + 1.5.2 org.springframework.boot diff --git a/src/main/resources/static/app/controllers.js b/src/main/resources/static/app/controllers.js index 3141cea..05b3182 100644 --- a/src/main/resources/static/app/controllers.js +++ b/src/main/resources/static/app/controllers.js @@ -164,12 +164,13 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$routePara "account" : $scope.account._links.self.href, "amount" : amountToNumber($scope.transaction.amount), "date" : $scope.transaction.date, - "description" : $scope.transaction.description, + "description" : $scope.transaction.description != undefined ? $scope.transaction.description : '', "category" : $scope.transaction.category._links.self.href, "creditor" : $scope.transaction.creditor }); newTransaction.$save(function(transaction) { + console.log(transaction); document.getElementById('transactionSubmit').disabled = false; $scope.waitingForSubmission = false; $scope.refreshList(); @@ -485,7 +486,7 @@ transactionControllers.controller('ImportListCtrl', [ '$scope', '$resource', '$l "account" : $scope.account._links.self.href, "amount" : line[4].replace(',', '.'), "date" : new Date(line[1].substr(6,4) + "-" + line[1].substr(3,2) + "-" + line[1].substr(0,2)), - "description" : line.targetDescription, + "description" : line.targetDescription != undefined ? line.targetDescription : '', "category" : line.targetCategory._links.self.href, "creditor" : "" }); diff --git a/src/main/resources/static/app/import-list.html b/src/main/resources/static/app/import-list.html index 3c7358a..f0e7991 100644 --- a/src/main/resources/static/app/import-list.html +++ b/src/main/resources/static/app/import-list.html @@ -30,7 +30,7 @@ ng-options="category.name for category in categories track by category._links.self.href"> - + {{line.matcherPosition}}