]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix propagation of speculative account ammounts to parent accounts
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 10 May 2021 19:17:03 +0000 (22:17 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 10 May 2021 19:17:34 +0000 (19:17 +0000)
app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java

index d3131f776e2181807193f494be38b32c4ad44fe0..fd796f2d5f68e3788c9c9f9c5d65de3462888ac4 100644 (file)
@@ -69,7 +69,7 @@ public class TransactionAccumulator {
             for (LedgerTransactionAccount acc : transaction.getAccounts()) {
                 if (acc.getAccountName()
                        .equals(accumulateAccount) ||
-                    LedgerAccount.isParentOf(accumulateAccount, acc.getAccountName()))
+                    LedgerAccount.isParentOf(acc.getAccountName(), accumulateAccount))
                 {
                     BigDecimal amt = runningTotal.get(acc.getCurrency());
                     if (amt == null)