From ee25f4e7c6374b9bb801cf8836ed41df568d3499 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 --- 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 8e510f956e..370cf33041 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