From 3ee100e71ebdbab4e4a78a375170c71e8e1ff501 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 11 Jan 2022 05:48:34 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/5422 --- app/Services/Internal/Update/AccountUpdateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Internal/Update/AccountUpdateService.php b/app/Services/Internal/Update/AccountUpdateService.php index 51add15fba..1e92b4a4a2 100644 --- a/app/Services/Internal/Update/AccountUpdateService.php +++ b/app/Services/Internal/Update/AccountUpdateService.php @@ -325,7 +325,7 @@ class AccountUpdateService if ($this->validOBData($data) && !$this->isEmptyOBData($data)) { $openingBalance = $data['opening_balance']; $openingBalanceDate = $data['opening_balance_date']; - if ('credit' === $data['liability_direction']) { + if ('credit' === $direction) { $this->updateCreditTransaction($account, $openingBalance, $openingBalanceDate); } }