Bug 31459: Use the same dropdown as when adding orders to a basket
authorNick Clemens <nick@bywatersolutions.com>
Thu, 25 Aug 2022 11:26:33 +0000 (11:26 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 5 Dec 2022 22:46:42 +0000 (22:46 +0000)
commit382e80b7377f2f000b4ae94f4526b608ed80fe71
treeb85660ff82b7732fa38bdd2cea0fc50e8fd60b4d
parentee55ebf4ddd20a5c83301d45fe1d5322d6ff6c29
Bug 31459: Use the same dropdown as when adding orders to a basket

Current order receive code loops over each budget period and gets the hierarchy, this
is slow when systems have many budgets. Additionally, the list includes inactive items
by default

We can switch to a single call, and add consistency by adopting the same dropdown as used
when placing an order

To test:
1 - Add some budgets with funds - ensure you have at least one inactive budget and fund
2 - Place an order, observe the fund selection menu
3 - Close basket, receive order, observe the fund menu
4 - Apply patch
5 - Cancel receipt
6 - Receive again
7 - Observe fund menu, confirm it matches the order placing menu
8 - Confirm inactive are not displayed by default, but are when button is checked

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
https://bugs.koha-community.org/show_bug.cgi?id=31559
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 24e7703aef42b2e9e7900dc36eb5c8f1d3f73e4f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
acqui/orderreceive.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt