Bug 31388

Summary: Add select2 to fund selection in new order form
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: AcquisitionsAssignee: Fridolin Somers <fridolin.somers>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: caroline.cyr-la-rose, lucas
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23465
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Caroline Cyr La Rose Documentation submission: https://gitlab.com/koha-community/koha-manual/-/merge_requests/631
Text to go in the release notes:
Version(s) released in:
22.11.00
Circulation function:
Bug Depends on:    
Bug Blocks: 31440, 34491    
Attachments: Bug 31388: Add select2 to fund selection in new order form
Bug 31388: Add select2 to fund selection in new order form
Bug 31388: Add select2 to fund selection in new order form

Description Fridolin Somers 2022-08-17 21:18:29 UTC
In new order form, when you have a lot of funds, would be useful to have autocompletion in funds combobox.
Comment 1 Fridolin Somers 2022-08-17 21:22:37 UTC
Created attachment 139304 [details] [review]
Bug 31388: Add select2 to fund selection in new order form

In new order form, when you have a lot of funds,
would be useful to have autocompletion in funds combobox.

Test plan :
1) Create an activ and an inactiv budget with at least one fund
2) Create a new order 'From a new (empty) record'
3) Check you see autocompletion in 'Fund' combobox
4) Click on 'Show inactive'
5) Check you see inactiv funds in combobox
Comment 2 Fridolin Somers 2022-08-17 21:23:34 UTC
If sound OK i will create a patch for creation of order from other sources.
Comment 3 Owen Leonard 2022-08-18 13:26:26 UTC
Created attachment 139383 [details] [review]
Bug 31388: Add select2 to fund selection in new order form

In new order form, when you have a lot of funds,
would be useful to have autocompletion in funds combobox.

Test plan :
1) Create an activ and an inactiv budget with at least one fund
2) Create a new order 'From a new (empty) record'
3) Check you see autocompletion in 'Fund' combobox
4) Click on 'Show inactive'
5) Check you see inactiv funds in combobox

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 4 Katrin Fischer 2022-08-20 09:03:17 UTC
Created attachment 139537 [details] [review]
Bug 31388: Add select2 to fund selection in new order form

In new order form, when you have a lot of funds,
would be useful to have autocompletion in funds combobox.

Test plan :
1) Create an activ and an inactiv budget with at least one fund
2) Create a new order 'From a new (empty) record'
3) Check you see autocompletion in 'Fund' combobox
4) Click on 'Show inactive'
5) Check you see inactiv funds in combobox

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Tomás Cohen Arazi (tcohen) 2022-08-22 16:43:27 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 6 Fridolin Somers 2022-08-23 07:52:59 UTC
Great thanks.

I've opened Bug 31440.
Feel free to assign.

Maybe there are other places where we could use select2 ;)
Comment 7 Lucas Gass (lukeg) 2022-10-14 22:01:02 UTC
Enhancement will not be backported to 22.05.x series