invoiceable item search fails because of wrong datatype

Bug #1637654 reported by Chris Sharp
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

When searching for items to link to an invoice (within an invoice, click the "Search" tab), all searches are failing with the error "Event: 2002:DATABASE_QUERY_FAILED -> The attempt to query to the DB failed". Further investigation shows a PostgreSQL wrong type error, trying to use text as an integer - specifically it is using the provider name rather than the provider ID.

JSON query from the opensrf logs is attached.

Revision history for this message
Chris Sharp (chrissharp123) wrote :
Revision history for this message
Chris Sharp (chrissharp123) wrote :

Oh,

Evergreen 2.9.1
OpenSRF 2.4.1
PostgreSQL 9.4
Ubuntu 14.04 LTS

tags: added: acq
Revision history for this message
Chris Sharp (chrissharp123) wrote :

We were able to confirm the issue here at the Hack-A-Way. One more data point is that this fails on *closed* invoices. If you click the "Reopen" button, then do a search, it works as expected.

Changed in evergreen:
status: New → Confirmed
Revision history for this message
Chris Sharp (chrissharp123) wrote :

Bill discovered that when the invoice is closed, the edit pane displaying the invoice summary is in read-only mode, and that the provider ID is read as the provider name. Rather than fixing that problem, we agree that it makes more sense to just disable the Search tab when the invoice is closed.

tags: added: acq-invoice acq-search
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.