From 156666dae85ffcc35152b44e2eccb463b74ac406 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 16 Feb 2012 12:50:47 -0500 Subject: [PATCH] PO Invoice link search by PO instead of Lineitem 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 Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/acq/po/view_po.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/acq/po/view_po.js b/Open-ILS/web/js/ui/default/acq/po/view_po.js index 07c29e789c..ed4d55ef41 100644 --- a/Open-ILS/web/js/ui/default/acq/po/view_po.js +++ b/Open-ILS/web/js/ui/default/acq/po/view_po.js @@ -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"; }; -- 2.11.0