"FUND_LIST_ROLLOVER_SUMMARY_ROLLOVER_AMOUNT" : "<b>$${1}</b> unspent money rolled over to fiscal year ${0} for the selected locations",
"FUND_XFER_SAME_SOURCE_AND_DEST" : "Cannot transfer. The source and destination funds are the same.",
"FUND_XFER_CONFIRM" : "Are you sure you're ready to commit this transfer?",
+ "PO_ACTIVATED_ON" : "Activated ${0}",
"PO_CHECKING" : "[One moment...]",
"PO_COULD_ACTIVATE" : "Yes.",
"PO_WARNING_NO_BLOCK_ACTIVATION" : "Yes; fund ${0} (${1}) would be encumbered beyond its warning level.",
dojo.byId("acq-po-view-total-enc").innerHTML = PO.amount_encumbered().toFixed(2);
dojo.byId("acq-po-view-total-spent").innerHTML = PO.amount_spent().toFixed(2);
dojo.byId("acq-po-view-state").innerHTML = PO.state(); // TODO i18n
+
+ if(PO.order_date()) {
+ openils.Util.show('acq-po-activated-on', 'inline');
+ dojo.byId('acq-po-activated-on').innerHTML =
+ dojo.string.substitute(
+ localeStrings.PO_ACTIVATED_ON, [
+ dojo.date.locale.format(
+ dojo.date.stamp.fromISOString(PO.order_date()),
+ {formatLength:'short'}
+ )
+ ]
+ );
+
+ }
+
makePrepayWidget(
dojo.byId("acq-po-view-prepay"),
openils.Util.isTrue(PO.prepayment_required())
<div dojoType="dijit.layout.ContentPane" style="height:100%">
<div>
<div id='oils-acq-picklist-header'>
- <big>Purchase Order (<span id="acq-po-view-state"></span>)</big>
+ <big>
+ Purchase Order (<span id="acq-po-view-state"></span>)
+ </big>
+ <span id='acq-po-activated-on' class='hidden'></span>
<table class="oils-generic-table acq-po-info">
<tr>
<th>ID</th><td><a id="acq-po-view-id"/></td>