From: Bill Erickson Date: Thu, 15 Sep 2011 18:57:19 +0000 (-0400) Subject: Acq: List provider code in lineitem lists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=26a41e3f59a63c04bda65eacbcabc374b4b1da07;p=working%2FEvergreen.git Acq: List provider code in lineitem lists Along with selection list and purchase order, when an item is attached to a purchase order, also show the provider code Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/acq/common/li_table.tt2 b/Open-ILS/src/templates/acq/common/li_table.tt2 index 268e9873ad..3abd25a314 100644 --- a/Open-ILS/src/templates/acq/common/li_table.tt2 +++ b/Open-ILS/src/templates/acq/common/li_table.tt2 @@ -105,6 +105,7 @@ | ✍ worksheet + 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 cf54585991..263376ce99 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 @@ -321,6 +321,7 @@ function AcqLiTable() { {params: [ this.authtoken, li.purchase_order(), { "flesh_price_summary": true, + "flesh_provider" : true, "flesh_lineitem_count": true } ]}); @@ -329,6 +330,11 @@ function AcqLiTable() { var link = nodeByName('po_link', row); link.setAttribute('href', oilsBasePath + '/acq/po/view/' + li.purchase_order()); link.innerHTML += po.name(); + + openils.Util.show(nodeByName('pro', row), 'inline'); + link = nodeByName('pro_link', row); + link.setAttribute('href', oilsBasePath + '/conify/global/acq/provider/' + po.provider().id()) + link.innerHTML += po.provider().code(); } }