]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/db/AccountWithAmounts.java
show current account balance when choosing account in new transactions
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / db / AccountWithAmounts.java
index 499a2b9c75cf8104be6e28abf6a65c76990eec14..86742ca23b831d23d14fbfc54c48585d95a4531a 100644 (file)
@@ -17,6 +17,7 @@
 
 package net.ktnx.mobileledger.db;
 
+import androidx.annotation.NonNull;
 import androidx.room.Embedded;
 import androidx.room.Relation;
 
@@ -27,4 +28,9 @@ public class AccountWithAmounts {
     public Account account;
     @Relation(parentColumn = "id", entityColumn = "account_id")
     public List<AccountValue> amounts;
+    @NonNull
+    @Override
+    public String toString() {
+        return account.getName();
+    }
 }