From: Damyan Ivanov Date: Mon, 25 Mar 2019 23:38:47 +0000 (+0200) Subject: show accumulated balance in parent accounts X-Git-Tag: v0.8.1~3 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c4a094e722e19b0119e2ede3dd96f778a128f7aa;p=mobile-ledger.git show accumulated balance in parent accounts --- 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; }