feat: a budget type that will rollover but also incorporate overspending from the previous period (if any)

This commit is contained in:
James Cole
2023-05-15 06:18:02 +02:00
parent 63fdc2487f
commit 0b5e0a268a
15 changed files with 100 additions and 9 deletions

View File

@@ -829,6 +829,9 @@ class BudgetRepository implements BudgetRepositoryInterface
if ('rollover' === $type) {
$type = AutoBudget::AUTO_BUDGET_ROLLOVER;
}
if('adjusted' === $type) {
$type = AutoBudget::AUTO_BUDGET_ADJUSTED;
}
$repos = app(CurrencyRepositoryInterface::class);
$currency = null;