Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Won’t set budget for anything other then withdrawals. #916
James Cole15e060ea9e46
diff --git a/app/TransactionRules/Actions/SetBudget.php b/app/TransactionRules/Actions/SetBudget.phpindex 8723ac4fe6..cd2b4bbc10 100644--- a/app/TransactionRules/Actions/SetBudget.php+++ b/app/TransactionRules/Actions/SetBudget.php@@ -65,8 +65,8 @@ class SetBudget implements ActionInterfacereturn 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;}