[open-ils-commits] r16394 - in trunk/Open-ILS/web: js/ui/default/acq/common templates/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 6 10:55:14 EDT 2010
Author: erickson
Date: 2010-05-06 10:55:11 -0400 (Thu, 06 May 2010)
New Revision: 16394
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
Log:
added links to LI and PO history pages
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-05-05 21:13:22 UTC (rev 16393)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-05-06 14:55:11 UTC (rev 16394)
@@ -432,6 +432,9 @@
var actLinkInvoice = nodeByName('action_link_invoice', row);
var actViewInvoice = nodeByName('action_view_invoice', row);
+ nodeByName('action_view_history', row).onclick =
+ function() { location.href = oilsBasePath + '/acq/lineitem/history/' + li.id(); };
+
var state_cell = nodeByName("li_state", row);
if (li.state() == "cancelled") {
@@ -1872,6 +1875,10 @@
this.printPO();
break;
+ case 'po_history':
+ location.href = oilsBasePath + '/acq/po/history/' + this.isPO;
+ break;
+
case 'receive_po':
this.receivePO();
break;
Modified: trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2010-05-05 21:13:22 UTC (rev 16393)
+++ trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2010-05-06 14:55:11 UTC (rev 16394)
@@ -29,6 +29,7 @@
<option mask='po' value='receive_po'>Mark Purchase Order as Received</option>
<option mask='po' value='rollback_receive_po'>Un-Receive Purchase Order</option>
<option mask='po' value='print_po'>Print Purchase Order</option>
+ <option mask='po' value='po_history'>View PO History</option>
</select>
<span id="acq-lit-export-attr-holder" class="hidden">
<input dojoType="dijit.form.FilteringSelect" id="acq-lit-export-attr" jsId="acqLitExportAttrSelector" labelAttr="description" searchAttr="description" />
@@ -115,6 +116,7 @@
<option name='action_view_invoice' disabled='disabled'>View Invoice(s)</option>
<option name='action_view_claim_policy'>Apply Claim Policy</option>
<option name='action_manage_claims' disabled='disabled'>Claims</option>
+ <option name='action_view_history'>View History</option>
</select>
</td>
<td><span name='li_state'></span></td>
More information about the open-ils-commits
mailing list