evil default category hack

This commit is contained in:
2016-07-20 22:00:06 +02:00
parent d74acb65a7
commit def16ee8b0
3 changed files with 6 additions and 5 deletions
@@ -77,6 +77,11 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$routePara
if (typeof $scope.categories !== 'undefined') {
$scope.transaction.category = $scope.categories[0];
// XXX dirty hack - one day we will have to move that into the database...
if ($scope.account.name == 'Gemeinschaftskonto') {
$scope.transaction.category = $scope.categories[3];
}
}
// get recent transactions