]> git.koha-community.org Git - koha.git/commit
Bug 18941 - C4::Budgets GetBudgetByCode should return active budgets over inactive...
authorNick Clemens <nick@bywatersolutions.com>
Fri, 14 Jul 2017 11:25:42 +0000 (11:25 +0000)
committerMason James <mtj@kohaaloha.com>
Tue, 24 Oct 2017 03:42:07 +0000 (16:42 +1300)
commitb2b1ee07cf024bc57ec268fd5c0e9e2ac9544b31
tree358865f46ed97d4621ecf7bc81f2fc0a5a990c2b
parentcb555851c644763bdd3c80676524b0c23fd79b3a
Bug 18941 - C4::Budgets GetBudgetByCode should return active budgets over inactive budgets

To test:
1 - Create an active budget
2 - Create an inactive budget
3 - Ensure they each have a fund with the same code
4 - Set MarcFieldsToOrder to get the budget_code from a marc field
5 - Stage a file using the duplicated code
6 - Add to a basket from the staged file
7 - Add the items
8 - Note funds are encumbered from the inactive budget
9 - Apply patch
10 - Repeat 5-8 with a new basket
11 - Note the active budget is now used

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/Budgets.pm