Bug 35866

Summary: Filter in parcels.pl only checks 20 first results
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: philippe.blouin
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Caroline Cyr La Rose 2024-01-22 21:11:26 UTC
When a library has a lot of invoices for a vendor, the filter box at the top of the invoice table only looks in the 20 first results. (The filter box on the left side is OK.)

To recreate:
1. Go to Acquisitions
2. Search for a vendor
3. Click "Receive shipments"
4. If there are less than 21 invoices, create some until you have at least 21
   4.1. Fill out the "Vendor invoice" field
   4.2. Click Save
   4.3. Click "Back" in your browser
   4.4. Redo steps 4.1 to 4.3
5. In the filter box at the top of the table, search for an invoice number on the second page of results
   --> No results
6. In the filter box on the left, search for an invoice number on the second page of results
   --> Result found
   --> Also note that when the filter is not used, it says "XX shipments" at the top of the page (mine says 36 shipments), but at the top and bottom of the table it says "Showing 1 to 20 of 20 entries"

The filter box at the top of the table seems to be defective. Maybe we could change the table to a datatable? On those types of tables, the filter box searches in all the entries, and the entry count is correct.