]> git.koha-community.org Git - koha.git/commit
Bug 36233: Use select2 to load vendors on invoice search
authorNick Clemens <nick@bywatersolutions.com>
Tue, 5 Mar 2024 14:52:16 +0000 (14:52 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 18 Mar 2024 08:57:08 +0000 (09:57 +0100)
commitbb5fd20c6804fbb3e479dca113971d507e021ca3
treee44c54ebb7080a05d27e803efd87fec9ad27d571
parentda258a31950d53831292fdbcc54948ba3237c18c
Bug 36233: Use select2 to load vendors on invoice search

This patch moves the dropdown to use select2 and avoids loading all
vendors at page load.

To test:
 1 - Create some extra vendors in your system, ideally over 20
 2 - Search for a vendor in acquisitions
 3 - Click 'Invoices'
 4 - Note the dropdown of all vendors 'Vendor:' in search bar on left
 5 - The vendor you came from shoudl eb selected
 6 - Apply patch
 7 - Repeat
 8 - Note only a partial list of vendors is loaded, confirm current vendor still selected
 9 - Search in the dropdown and confirm vendors are returned
10 - Select a vendor and search
11 - confirm selection is retained

Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Rebased-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6b1b3718889f3674ac00eccbe3e0636a66f2c1a5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
acqui/invoices.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt