[open-ils-commits] r16003 - in trunk/Open-ILS: src/perlmods/OpenILS/Application/Acq web/js/ui/default/acq/po web/templates/default/acq/po (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 26 10:37:15 EDT 2010
Author: senator
Date: 2010-03-26 10:37:12 -0400 (Fri, 26 Mar 2010)
New Revision: 16003
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm
trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js
trunk/Open-ILS/web/templates/default/acq/po/view.tt2
Log:
Acq: show provider name in the PO viewing interface
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm 2010-03-26 12:42:16 UTC (rev 16002)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm 2010-03-26 14:37:12 UTC (rev 16003)
@@ -902,6 +902,9 @@
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;
Modified: trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js 2010-03-26 12:42:16 UTC (rev 16002)
+++ trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js 2010-03-26 14:37:12 UTC (rev 16003)
@@ -252,6 +252,7 @@
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 @@
['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
Modified: trunk/Open-ILS/web/templates/default/acq/po/view.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/po/view.tt2 2010-03-26 12:42:16 UTC (rev 16002)
+++ trunk/Open-ILS/web/templates/default/acq/po/view.tt2 2010-03-26 14:37:12 UTC (rev 16003)
@@ -9,6 +9,7 @@
<table class='oils-generic-table'>
<tr><td>ID</td><td><a id='acq-po-view-id'/></td></tr>
<tr><td>Name</td><td><a id='acq-po-view-name' href='javascript:void(0);' onclick='updatePoName()'></a></td></tr>
+ <tr><td>Provider</td><td><span id="acq-po-view-provider"/></td></tr>
<tr><td>Total Lineitems</td><td><span id='acq-po-view-total-li'/></td></tr>
<tr><td>Total Encumbered</td><td>$<span id='acq-po-view-total-enc'/></td></tr>
<tr><td>Total Spent</td><td>$<span id='acq-po-view-total-spent'/></td></tr>
More information about the open-ils-commits
mailing list