From 03672212f0b56198c2392c9bb873876ac5a89a64 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 10 May 2021 22:17:03 +0300 Subject: [PATCH] fix propagation of speculative account ammounts to parent accounts --- .../net/ktnx/mobileledger/async/TransactionAccumulator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2