bugfixes for null descriptions and imported descriptions
This commit is contained in:
@@ -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" : ""
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user