From 15e060ea9e46f3d940f436100ffc4d9e2374bb21 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 13 Oct 2017 18:26:05 +0200 Subject: [PATCH] =?UTF-8?q?Won=E2=80=99t=20set=20budget=20for=20anything?= =?UTF-8?q?=20other=20then=20withdrawals.=20#916?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/TransactionRules/Actions/SetBudget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/TransactionRules/Actions/SetBudget.php b/app/TransactionRules/Actions/SetBudget.php index 8723ac4fe6..cd2b4bbc10 100644 --- a/app/TransactionRules/Actions/SetBudget.php +++ b/app/TransactionRules/Actions/SetBudget.php @@ -65,8 +65,8 @@ class SetBudget implements ActionInterface return true; } - if ($journal->transactionType->type === TransactionType::TRANSFER) { - Log::debug(sprintf('RuleAction SetBudget could not set budget of journal #%d to "%s" because journal is a transfer.', $journal->id, $search)); + if ($journal->transactionType->type !== TransactionType::WITHDRAWAL) { + Log::debug(sprintf('RuleAction SetBudget could not set budget of journal #%d to "%s" because journal is a %s.', $journal->id, $search, $journal->transactionType->type)); return true; }