From: senator Date: Fri, 26 Mar 2010 14:37:12 +0000 (+0000) Subject: Acq: show provider name in the PO viewing interface X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c006ca0839d3f3c074871724486fecc2de1a3c9c;p=evergreen%2Fpines.git Acq: show provider name in the PO viewing interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@16003 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm index 69e1a8e03d..676e7920fe 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm @@ -902,6 +902,9 @@ sub retrieve_purchase_order_impl { if ($options->{"flesh_notes"}) { push @{$flesh->{"flesh_fields"}->{"acqpo"}}, "notes"; } + if ($options->{"flesh_provider"}) { + push @{$flesh->{"flesh_fields"}->{"acqpo"}}, "provider"; + } my $po = $e->retrieve_acq_purchase_order([$po_id, $flesh]) or return $e->event; 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 72e7ce154e..60cf428ac4 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 @@ -252,6 +252,7 @@ function makeCancelWidget(node, labelnode) { function renderPo() { dojo.byId("acq-po-view-id").innerHTML = PO.id(); dojo.byId("acq-po-view-name").innerHTML = PO.name(); + dojo.byId("acq-po-view-provider").innerHTML = PO.provider().name(); dojo.byId("acq-po-view-total-li").innerHTML = PO.lineitem_count(); dojo.byId("acq-po-view-total-enc").innerHTML = PO.amount_encumbered(); dojo.byId("acq-po-view-total-spent").innerHTML = PO.amount_spent(); @@ -289,6 +290,7 @@ function init() { ['open-ils.acq', 'open-ils.acq.purchase_order.retrieve'], { async: true, params: [openils.User.authtoken, poId, { + "flesh_provider": true, "flesh_price_summary": true, "flesh_lineitem_count": true, "flesh_notes": true diff --git a/Open-ILS/web/templates/default/acq/po/view.tt2 b/Open-ILS/web/templates/default/acq/po/view.tt2 index 4c43c7afcf..b5c45aab35 100644 --- a/Open-ILS/web/templates/default/acq/po/view.tt2 +++ b/Open-ILS/web/templates/default/acq/po/view.tt2 @@ -9,6 +9,7 @@ +
ID
Name
Provider
Total Lineitems
Total Encumbered$
Total Spent$