From: Bill Erickson Date: Thu, 16 Feb 2012 17:50:47 +0000 (-0500) Subject: PO Invoice link search by PO instead of Lineitem X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=156666dae85ffcc35152b44e2eccb463b74ac406;p=evergreen%2Fjoelewis.git 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 --- 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"; };