X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fmodel%2FTransactionListItem.java;h=6f1ee9ebcb8eabfdeaa7844fd02f4c476ad41191;hb=HEAD;hp=82a15f36f8b61c3a3cdfb44d668f3380684d347a;hpb=1fe7c92ffb82a8d6e4dd354154c46b26d8afe48b;p=mobile-ledger.git diff --git a/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java b/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java index 82a15f36..7c352091 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java @@ -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;