bugfix for retired categories
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.tilman</groupId>
|
||||
<artifactId>next-transactions</artifactId>
|
||||
<version>1.5.6</version>
|
||||
<version>1.5.7</version>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
@@ -6,10 +6,13 @@ INSERT INTO Category (id, name, account_id, position, retired) VALUES
|
||||
(null, 'Einnahmen - Gehalt', 1, 1, false),
|
||||
(null, 'Essen - Arbeit', 1, 3, false),
|
||||
(null, 'Sonstiges - Projekt 1000', 1, 4, true),
|
||||
(null, 'Wohnen - Haushalt', 1, 4, false),
|
||||
(null, 'Private Entnahme', 1, 5, false),
|
||||
(null, 'Wohnen - Haushalt', 1, 5, false),
|
||||
(null, 'Private Entnahme', 1, 6, false),
|
||||
(null, 'Einnahmen - Gehalt', 2, 1, false),
|
||||
(null, 'Technik - Server und Hosting', 2, 2, false);
|
||||
(null, 'Technik - Server und Hosting', 2, 2, false),
|
||||
(null, 'Essen - Restaurant & Café', 1, 6, true),
|
||||
(null, 'Essen - Süßwaren & Genussmittel', 1, 7, true),
|
||||
(null, 'Familie - Baby', 1, 8, true);
|
||||
|
||||
INSERT INTO Account_User (account_id, user_id) VALUES (1, 1), (1, 2), (1, 3), (2, 1);
|
||||
|
||||
|
||||
@@ -154,6 +154,7 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$routePara
|
||||
for (i = 0; i < $scope.categories.length; i++) {
|
||||
if ($scope.categories[i].retired) {
|
||||
$scope.categories.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user