X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fmodel%2FTransactionListItem.java;h=7c3520919232c10c7fc44c42fe19957c649231e4;hp=82a15f36f8b61c3a3cdfb44d668f3380684d347a;hb=64413271ef4ed943ae29e9cf9115c1bb77053278;hpb=d446296a0a2bd86fc1a4e5de3bed9289dc042396 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;