Won’t set budget for anything other then withdrawals. #916

This commit is contained in:
James Cole
2017-10-13 18:26:05 +02:00
parent 4c834467ae
commit 15e060ea9e

View File

@@ -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;
}