https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18941 Bug ID: 18941 Summary: C4::Budgets GetBudgetByCode should return active budgets over inactive budgets Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Acquisitions Assignee: nick@bywatersolutions.com Reporter: nick@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org When closing a budget/creating new budgets at the end of the year fund codes are duplicated. When importing orders from a staged file we retrieve the budget using only the fund code, this is problematic if we have multiple budgets. When we really see the effect is a library that creates a new inactive budget for upcoming year, this budget's fund end up being implicitly selected by DB order. We instead need to explicitly select active funds. -- You are receiving this mail because: You are watching all bug changes.