We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c4087c commit 0fdb76cCopy full SHA for 0fdb76c
1 file changed
app/src/main/java/org/gnucash/android/ui/account/AccountFormFragment.java
@@ -598,7 +598,7 @@ private String getAllowedParentAccountTypes(AccountType type) {
598
599
case INCOME:
600
case EXPENSE:
601
- return "'" + AccountType.EXPENSE + "', '" + AccountType.INCOME + "'";
+ return "'" + AccountType.EXPENSE.name() + "', '" + AccountType.INCOME.name() + "'";
602
603
case CASH:
604
case BANK:
@@ -618,6 +618,9 @@ private String getAllowedParentAccountTypes(AccountType type) {
618
return "'" + TextUtils.join("','", accountTypeStrings) + "'";
619
}
620
621
+ case TRADING:
622
+ return "'" + AccountType.TRADING.name() + "'";
623
+
624
case ROOT:
625
default:
626
return Arrays.toString(AccountType.values()).replaceAll("\\[|]", "");
0 commit comments