]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 6a2700f36480c870d1fedc01517107c785bf2d83..8a75996cd2adf53c3aabe381964c0cd66f63e5d3 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 dd19e27d2220b28dfa29967b5428d2618d997ed4..d155c2bb24bb2ef1fec22d4d40d6fd8adb19accc 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;
     }