JBAS-1634 Acq PO/Invoice search on identifiers
authorBill Erickson <berickxx@gmail.com>
Fri, 20 Apr 2018 17:21:03 +0000 (13:21 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Replace the canned searches for "Purchase Orders" and "Open Invoices"
with searches for PO ID and invoice vendor invoice identifier.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/acq/search/unified.js

index cf52963..28da954 100644 (file)
@@ -924,8 +924,7 @@ function URIManager() {
         "po": {
             "search_object": {
                 "acqpo": [
-                    {"ordering_agency": openils.User.user.ws_ou()},
-                    {"state": "on-order"}
+                    {"id": ""}
                 ]
             },
             "half_search": true,
@@ -950,8 +949,7 @@ function URIManager() {
         "inv": {
             "search_object": {
                 "acqinv": [
-                    {"close_date": null, "__not":true},
-                    {"receiver": openils.User.user.ws_ou()}
+                    {"inv_ident": ""}
                 ]
             },
             "half_search": true,