mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Can no longer set a budget to an expense.
This commit is contained in:
@@ -150,7 +150,15 @@ class JournalUpdateService
|
||||
foreach ($journal->transactions as $transaction) {
|
||||
$service->updateBudget($transaction, $budgetId);
|
||||
}
|
||||
return $journal;
|
||||
}
|
||||
// clear budget.
|
||||
/** @var Transaction $transaction */
|
||||
foreach ($journal->transactions as $transaction) {
|
||||
$transaction->budgets()->sync([]);
|
||||
}
|
||||
// remove budgets from journal:
|
||||
$journal->budgets()->sync([]);
|
||||
|
||||
return $journal;
|
||||
}
|
||||
|
Reference in New Issue
Block a user