1 [% WRAPPER 'base.tt2' %]
2 [% ctx.page_title = l("Purchase Order") %]
3 <div dojoType="dijit.layout.ContentPane" style="height:100%">
4 <div id='oils-scroll-to-top'></div>
6 <div id='oils-acq-picklist-header'>
8 [% l('Purchase Order ([_1])', '<span id="acq-po-view-state"></span>') %]
10 <span id='acq-po-activated-on' class='hidden'></span>
11 <table class="oils-generic-table acq-po-info">
13 <th>[% l('ID') %]</th><td><a id="acq-po-view-id"/></td>
14 <th>[% l('Prepayment Required?') %]</th>
15 <td><span id="acq-po-view-prepay"></span></td>
18 <th>[% l('Name') %]</th>
19 <td><a id="acq-po-view-name" href="javascript:void(0);"
20 onclick="updatePoName()"></a></td>
21 <th>[% l('Activatable?') %]</th>
23 <span id="acq-po-activate-checking"></span>
24 <span class="hidden" id="acq-po-activate-links" style='padding: 5px'>
25 <span dojoType="dijit.form.Button" onClick="activatePo()" jsId="activatePoButton">
26 [% l('Activate Order') %]
28 <span style='padding: 5px;'> / </span>
29 <span dojoType="dijit.form.Button" onClick="activatePo(true)" jsId="activatePoNoAssetsButton">
30 [% l('Activate Without Loading Items') %]
36 <th>[% l('Provider') %]</th>
37 <td><span id="acq-po-view-provider"></span></td>
38 <th>[% l('Notes') %]</th>
40 <a href="javascript:void(0);"
41 id="acq-po-view-notes"></a>
45 <th>[% l('Total Lineitems') %]</th>
46 <td><span id="acq-po-view-total-li"></span></td>
47 <th>[% l('EDI Messages') %]</th>
49 <a href="javascript:void(0);"
50 id="acq-po-view-edi-messages"></a>
54 <th>[% l('Total Estimated') %]</th>
55 <td>[% l('$[_1]', '<span id="acq-po-view-total-estimated"></span>') %]</td>
56 <th>[% l('History') %]</th>
58 <a class="hidden" href="javascript:void(0);"
59 id="acq-po-view-history">[% l('View') %]</a>
63 <th>[% l('Total Encumbered') %]</th>
64 <td>[% l('$[_1]', '<span id="acq-po-view-total-enc"></span>') %]</td>
65 <th id="acq-po-invoice-label" class="hidden">[% l('Invoicing') %]</th>
66 <td id="acq-po-invoice-stuff" class="hidden">
67 <button dojoType="dijit.form.Button"
68 id="acq-po-view-invoice-link">
69 [% l('View Invoices ([_1])',
70 '<span id="acq-po-view-invoice-count"></span>') %]
72 <button dojoType="dijit.form.Button"
73 id="acq-po-create-invoice-link">
74 [% l('Create Invoice') %]
76 <button dojoType="dijit.form.DropDownButton">
77 <span>[% l('Link Invoice') %]</span>
78 <div dojoType="dijit.TooltipDialog"
79 id="acq-po-link-invoice">
80 <script type="dojo/connect" event="onOpen">
81 if (!invoiceLinkDialogManager) {
82 invoiceLinkDialogManager =
83 new InvoiceLinkDialogManager(
88 [% INCLUDE "acq/common/inv_dialog.tt2"
95 <th>[% l('Total Spent') %]</th>
96 <td>[% l('$[_1]', '<span id="acq-po-view-total-spent"></span>') %]</td>
97 <th id="acq-po-cancel-label"></th>
99 <span id="acq-po-view-cancel-reason"></span>
100 <span id="acq-po-choose-cancel-reason" class="hidden">
101 <span dojoType="dijit.form.DropDownButton">
102 <span>[% l('Cancel order') %]</span>
103 <span dojoType="dijit.TooltipDialog">
104 <label for="acq-po-cancel-reason">
107 <span id="acq-po-cancel-reason"></span>
108 <button jsId="acqPoCancelReasonSubmit"
109 dojoType="dijit.form.Button"
110 type="submit">[% l('Cancel order') %]</button>
119 <div class='hidden' id='acq-po-return-to-search'>
120 <button dojoType='dijit.form.Button' id='acq-po-return-to-search-button'>[% l('↖ Return to Search') %]</button>
122 <div class='hidden' id='acq-po-return-to-invoice'>
123 <button dojoType='dijit.form.Button' id='acq-po-return-to-invoice-button'>[% l('↖ Return to Invoice') %]</button>
126 <th class="hidden" id="acq-po-zero-activate-label">[% l('Allow activation with <br/> zero-copy lineitems') %]</th>
127 <td class="hidden" id="acq-po-zero-activate"><input type='checkbox' id='acq-po-activate-zero-copies' onclick='checkCouldActivatePo()'/></td>
131 <a class="hidden" id="acq-po-split" href="javascript:void(0);"
132 onclick="if (confirm(localeStrings.CONFIRM_SPLIT_PO)) splitPo();">
133 [% l('Split Order by Lineitems') %]
140 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/acq/common/base64.js"></script>
141 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/po/view_po.js'></script>
142 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/acq/po/item_table.js"></script>
143 <script type="text/javascript">
144 var poId = "[% ctx.page_args.1 %]";
145 var liFocus = "[% ctx.page_args.0 %]";
146 if (liFocus && !poId) {
151 [% INCLUDE 'acq/common/li_table.tt2' %]
152 [% INCLUDE "acq/common/notes.tt2" which = "Po" %]
153 <div class='hidden' id='acq-po-no-lineitems'>
154 <button type='dijit.form.Button' onclick='location.href = oilsBasePath + "/acq/picklist/brief_record?po=" + poId'>
155 [% l('Add Brief Record') %]
158 [% INCLUDE "acq/po/item_table.tt2" %]