At the moment, it is not possible to delete a budget if the fund to which it belongs is added to any group. To be able to delete the budget, the link between the group_fund_fiscal_year and the budget tables must be removed before deleting.
Upon budget deletion find all group_fund_fiscal_years by budget.fundId and budget.fiscalYearId and clear groupFundFiscalYear.budgetId field
- The business logic described above has been added
- Unit tests are updated
- API tests are updated