PO Invoice link search by PO instead of Lineitem
authorBill Erickson <berick@esilibrary.com>
Thu, 16 Feb 2012 17:50:47 +0000 (12:50 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 23 Mar 2012 20:20:34 +0000 (16:20 -0400)
The button which allows the user to jump from the PO to linked invoices
now retrieves invoices directly based on the PO ID and instead of
jumping though the lineitem, which only works for POs that have
lineitems (invoiced).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/acq/po/view_po.js

index 07c29e7..ed4d55e 100644 (file)
@@ -285,7 +285,7 @@ function prepareInvoiceFeatures() {
     /* view invoices button */
     dijit.byId("acq-po-view-invoice-link").onClick = function() {
         location.href = oilsBasePath + "/acq/search/unified?so=" +
-            base64Encode({"jub":[{"purchase_order": PO.id()}]}) +
+            base64Encode({"acqpo":[{"id": PO.id()}]}) +
             "&rt=invoice";
     };