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>
/* 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";
};