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;
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();
['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
<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>