From c4a094e722e19b0119e2ede3dd96f778a128f7aa Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 26 Mar 2019 01:38:47 +0200 Subject: [PATCH] show accumulated balance in parent accounts --- .../ktnx/mobileledger/async/RetrieveTransactionsTask.java | 2 +- .../net/ktnx/mobileledger/json/ParsedLedgerAccount.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java index 6a2700f3..8a75996c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -414,7 +414,7 @@ public class RetrieveTransactionsTask else acc.removeAmounts(); profile.storeAccount(db, acc); - for (ParsedBalance b : parsedAccount.getAebalance()) { + for (ParsedBalance b : parsedAccount.getAibalance()) { profile.storeAccountValue(db, acc.getName(), b.getAcommodity(), b.getAquantity().asFloat()); } diff --git a/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java b/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java index dd19e27d..d155c2bb 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java @@ -24,15 +24,22 @@ import java.util.List; @JsonIgnoreProperties(ignoreUnknown = true) public class ParsedLedgerAccount { private List aebalance; + private List aibalance; private String aname; public ParsedLedgerAccount() { } public List getAebalance() { return aebalance; } + public List getAibalance() { + return aibalance; + } public void setAebalance(List aebalance) { this.aebalance = aebalance; } + public void setAibalance(List aibalance) { + this.aibalance = aibalance; + } public String getAname() { return aname; } -- 2.39.5