]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java
running totals when filtering transactions by account
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / TransactionListItem.java
index 82a15f36f8b61c3a3cdfb44d668f3380684d347a..7c3520919232c10c7fc44c42fe19957c649231e4 100644 (file)
@@ -30,20 +30,25 @@ public class TransactionListItem {
     private boolean monthShown;
     private LedgerTransaction transaction;
     private String boldAccountName;
+    private String runningTotal;
     public TransactionListItem(@NotNull SimpleDate date, boolean monthShown) {
         this.type = Type.DELIMITER;
         this.date = date;
         this.monthShown = monthShown;
     }
     public TransactionListItem(@NotNull LedgerTransaction transaction,
-                               @Nullable String boldAccountName) {
+                               @Nullable String boldAccountName, @Nullable String runningTotal) {
         this.type = Type.TRANSACTION;
         this.transaction = transaction;
         this.boldAccountName = boldAccountName;
+        this.runningTotal = runningTotal;
     }
     public TransactionListItem() {
         this.type = Type.HEADER;
     }
+    public String getRunningTotal() {
+        return runningTotal;
+    }
     @NonNull
     public Type getType() {
         return type;