Bug 31322

Summary: Searching not working on the receive orders page
Product: Koha Reporter: Holly <hc>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: hc, patrick.robitaille
Version: 21.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Holly 2022-08-08 14:37:41 UTC
On the invoice receive orders page there are two options to search. 1. The filtering options at the top of the pending orders table and 2. the search box above the table to the right hand side. 

I've tested on a few 21.11.09 sites and neither of these search options are working. 

When something is typed into either search option a "processing..." message flashes up for a moment and then disappears and the table is not narrowed down. On earlier releases, when searching with these features the table is narrowed down to match the search terms.

Go Acquisitions > Invoices and search for an invoice. On the "Invoices" table, find an entry with a status of open. Go to Actions > Details. On the new page, go to the "Adjustments" section and click "Go to receipt page" under that section. The new page it opens with the "Pending orders" table, is where the issue is.
Comment 1 Katrin Fischer 2022-08-08 17:41:42 UTC
Hi Holly, the receive page now uses an API based search. Can you test if you can see the libraries list in administration on these installations?
Comment 2 Holly 2022-08-09 07:47:21 UTC
Hi Katrin, yes I can see the libraries list.
Comment 3 Katrin Fischer 2022-08-09 08:30:55 UTC
There are some more things I have stumbled on in the past here:

* Make sure all the filters are empty/reset or test in a private window. 
* Make sure there is a closed basked with unreceived oder lines for this vendor.
* Check the browser developer tools for the API response when doing a search. That could help to locate the issue.
Comment 4 Katrin Fischer 2022-09-13 13:51:17 UTC
Hi Holly, did you find the problem/is this resolved?