show accumulated balance in parent accounts
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Mar 2019 23:38:47 +0000 (01:38 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Mar 2019 23:38:47 +0000 (01:38 +0200)
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java

index 6a2700f..8a75996 100644 (file)
@@ -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());
                     }
index dd19e27..d155c2b 100644 (file)
@@ -24,15 +24,22 @@ import java.util.List;
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class ParsedLedgerAccount {
     private List<ParsedBalance> aebalance;
+    private List<ParsedBalance> aibalance;
     private String aname;
     public ParsedLedgerAccount() {
     }
     public List<ParsedBalance> getAebalance() {
         return aebalance;
     }
+    public List<ParsedBalance> getAibalance() {
+        return aibalance;
+    }
     public void setAebalance(List<ParsedBalance> aebalance) {
         this.aebalance = aebalance;
     }
+    public void setAibalance(List<ParsedBalance> aibalance) {
+        this.aibalance = aibalance;
+    }
     public String getAname() {
         return aname;
     }