From: erickson Date: Tue, 13 Oct 2009 21:12:24 +0000 (+0000) Subject: when viewing a selection list, show a link to the related lineitem PO if necessary X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b957d4ff85d3af08baee722c5191d6d1819c9187;p=evergreen%2Fbjwebb.git when viewing a selection list, show a link to the related lineitem PO if necessary git-svn-id: svn://svn.open-ils.org/ILS/trunk@14403 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index d52b453c7..53e6fa328 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -183,6 +183,11 @@ function AcqLiTable() { dojo.query('[name=notes_count]', row)[0].innerHTML = li.lineitem_notes().length; dojo.query('[name=noteslink]', row)[0].onclick = function() {self.drawLiNotes(li)}; + if(li.purchase_order() && !this.isPO) { + openils.Util.show(nodeByName('po', row), 'inline'); + nodeByName('po_link', row).setAttribute('href', oilsBasePath + '/acq/po/view/' + li.purchase_order()); + } + var countNode = nodeByName('count', row); countNode.innerHTML = li.item_count() || 0; countNode.id = 'acq-lit-copy-count-label-' + li.id(); diff --git a/Open-ILS/web/templates/default/acq/common/li_table.tt2 b/Open-ILS/web/templates/default/acq/common/li_table.tt2 index 52a798124..291669ccd 100644 --- a/Open-ILS/web/templates/default/acq/common/li_table.tt2 +++ b/Open-ILS/web/templates/default/acq/common/li_table.tt2 @@ -64,7 +64,10 @@ - + + + +