Skip to content

Commit

Permalink
Do not run auto budgets for inactive budgets #4582
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Apr 3, 2021
1 parent 71785ba commit 82f8b09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Jobs/CreateAutoBudgetLimits.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ private function handleAutoBudget(AutoBudget $autoBudget): void

return;
}
if (false === $autoBudget->budget->active) {
Log::info(sprintf('Auto budget #%d is associated with an inactive budget.', $autoBudget->id));

return;
}
if (!$this->isMagicDay($autoBudget)) {
Log::info(
sprintf(
Expand Down

0 comments on commit 82f8b09

Please sign in to comment.