added links to LI and PO history pages
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 May 2010 14:55:11 +0000 (14:55 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 May 2010 14:55:11 +0000 (14:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16394 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/common/li_table.js
Open-ILS/web/templates/default/acq/common/li_table.tt2

index 73c5cb5..d05fb47 100644 (file)
@@ -432,6 +432,9 @@ function AcqLiTable() {
         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 @@ function AcqLiTable() {
                 this.printPO();
                 break;
 
+            case 'po_history':
+                location.href = oilsBasePath + '/acq/po/history/' + this.isPO;
+                break;
+
             case 'receive_po':
                 this.receivePO();
                 break;
index 5cacf1d..b252658 100644 (file)
@@ -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" />
                             <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>