Suggest account categories

This commit is contained in:
M66B
2023-11-13 09:40:35 +01:00
parent 424eb1cd19
commit c67007d13c
5 changed files with 39 additions and 4 deletions

View File

@@ -161,6 +161,12 @@ public interface DaoAccount {
" AND tbd IS NULL")
List<EntityAccount> getAccounts(String user, int protocol);
@Query("SELECT DISTINCT category" +
" FROM account" +
" WHERE NOT (category IS NULL OR category = '')" +
" ORDER BY category COLLATE NOCASE")
List<String> getAccountCategories();
@Query("SELECT * FROM account WHERE `primary`")
EntityAccount getPrimaryAccount();