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=ee25f4e7c6374b9bb801cf8836ed41df568d3499;p=working%2FEvergreen.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 --- 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"; };