From: Damyan Ivanov Date: Mon, 10 May 2021 19:17:03 +0000 (+0300) Subject: fix propagation of speculative account ammounts to parent accounts X-Git-Tag: v0.19.0~2 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=03672212f0b56198c2392c9bb873876ac5a89a64 fix propagation of speculative account ammounts to parent accounts --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java b/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java index d3131f77..fd796f2d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java @@ -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)