evil default category hack
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user