1 [% WRAPPER 'base.tt2' %]
2 [% ctx.page_title = l('Invoicing') %]
3 <div dojoType="dijit.layout.ContentPane" style="height:100%">
5 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
6 <div>[% l(' Invoice ') %]</div>
7 <div id="acq-view-invoice-receive" class="hidden">
8 <button id="acq-view-invoice-receive-link">[% l('Receive Items') %]</button>
12 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
14 #acq-invoice-num-summary-table td {
18 border-bottom: 2px solid #888;
20 #acq-invoice-num-summary-table td[id] {
24 <table id='acq-invoice-num-summary-table'>
25 <tr><td>[% l("Lineitems: " ) %]</td><td id='acq-invoice-summary-count'>0</td></tr>
27 <td>[% l("Expected Cost: " ) %]</td>
28 <td id='acq-invoice-summary-cost'>0.00</td>
34 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
35 <div id='acq-invoice-summary'>
36 <button id='acq-invoice-summary-toggle-off'>[% l('Hide Details') %]</button>
37 <span class="hidden" id="ident-validation-spinner"><img src="[% ctx.media_prefix %]/opac/images/progressbar_green.gif" style="height: 16px; width: 16px" /></span>
38 <div id='acq-view-invoice-div'></div>
40 <div id='acq-invoice-summary-small'>
41 <button id='acq-invoice-summary-toggle-on'>[% l('Show Details') %]</button>
42 <span style='font-weight:bold; font-size:120%' id='acq-invoice-summary-name'></span>
49 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
52 <div dojoType="dijit.layout.TabContainer" style="width: 96%; height: 100%;" doLayout='false'>
53 <div dojoType="dijit.layout.ContentPane"
54 class='oils-acq-detail-content-pane' title="[% l('Invoice') %]" selected='true'>
56 <script type='dojo/connect' event='onShow'>
57 // the table is left at display=none on subsequent tab views
58 dojo.byId('oils-acq-invoice-table').style.display = 'table'
61 <table id='oils-acq-invoice-table' class='oils-acq-invoice-table'>
63 <tbody id='acq-invoice-entry-header' class='hidden'>
67 [% l('Bibliographic Items') %]
72 <!-- acq.invoice_entry -->
73 <thead id='acq-invoice-entry-thead' class='hidden'>
75 <th colspan='2'>[% l('Title Details') %]</th>
76 <th class='acq-invoice-center-col'>[% l('# Invoiced / # Paid') %]</th>
77 <th class='acq-invoice-center-col'>[% l('Billed') %]</th>
78 <th class='acq-invoice-paid-per-copy-col'>[% l('Per Copy') %]</th>
79 <th class='acq-invoice-paid-col'>[% l('Paid') %]</th>
80 <th class='acq-invoice-center-col hide-complete'>[% l('Detach') %]</th>
83 <tbody id='acq-invoice-entry-tbody' class='hidden'>
84 <tr id='acq-invoice-entry-template' class='acq-invoice-row'>
86 <div name='title_details'></div>
87 <div name='note'></div>
89 <td class='acq-invoice-center-col' nowrap='nowrap'>
90 <span name='inv_item_count'></span> / <span name='phys_item_count'></span>
92 <td class='acq-invoice-billed-col'><div name='cost_billed'></div></td>
93 <td><div name='amount_paid_per_copy'>0.00</div></td>
94 <td class='acq-invoice-paid-col'><div name='amount_paid'></div></td>
95 <td class='acq-invoice-center-col hide-complete'><a href='javascript:void(0);' name='detach'>[% l('Detach') %]</a></td>
100 <td style='margin-top:15px;' colspan='0'>
101 <h3>[% l('Direct Charges, Taxes, Fees, etc.') %]</h3>
105 <!-- acq.invoice_item -->
108 <th>[% l('Charge Type') %]</th>
109 <th class='acq-invoice-center-col'>[% l('Fund') %]</th>
110 <th>[% l('Title/Description') %]</th>
111 <th class='acq-invoice-center-col'>[% l('Billed') %]</th>
113 <th class='acq-invoice-paid-col'>[% l('Paid') %]</th>
114 <th class='acq-invoice-center-col hide-complete'>[% l('Delete') %]</th>
117 <tbody id='acq-invoice-item-tbody'>
118 <tr id='acq-invoice-item-template' class='acq-invoice-row acq-invoice-item-row'>
119 <td><div name='inv_item_type'></div></td>
120 <td class='acq-invoice-center-col'><div name='fund'></div></td>
121 <td><div name='title'></div></td>
122 <td class='acq-invoice-center-col acq-invoice-billed-col'><div name='cost_billed'></div></td>
124 <td class='acq-invoice-paid-col'><div name='amount_paid'></div></td>
125 <td class='acq-invoice-center-col hide-complete'><a href='javascript:void(0);' name='delete'>[% l('Delete') %]</a></td>
128 <tbody class='hide-complete'>
131 <a href='javascript:void(0);' id='acq-invoice-new-item'>[% l('Add Charge...') %]</a>
137 <td style='margin-top:15px;' colspan='0'>
145 <th class='acq-invoice-center-col acq-invoice-billed-col'>[% l('Total') %]</th>
147 <th class='acq-invoice-paid-col'>[% l('Total') %]</th>
148 <th class='acq-invoice-center-col acq-invoice-balance-col'>[% l('Balance') %]</th>
153 <td colspan='3' style='text-align:right;'>
154 <button jsId='invoiceSaveButton' class='hide-complete'
155 dojoType='dijit.form.Button' onclick='saveChanges();'>[% l('Save') %]</button>
156 <button jsId='invoiceSaveButton' class='hide-complete'
157 dojoType='dijit.form.Button' onclick='saveChanges({clear:true});'>[% l('Save & Clear') %]</button>
158 <button jsId='invoiceProrateButton' class='hide-complete'
159 dojoType='dijit.form.Button' onclick='saveChanges({prorate:true});'>[% l('Prorate') %]</button>
160 <button jsId='invoiceCloseButton' class='hide-complete'
161 dojoType='dijit.form.Button' onclick='saveChanges({close:true});'>[% l('Close') %]</button>
162 <span class='hidden' id='acq-invoice-reopen-button-wrapper'>
163 <button jsId='invoiceReopenButton'
164 dojoType='dijit.form.Button' onclick='saveChanges({reopen:true});'>[% l('Reopen') %]</button>
167 <td class='acq-invoice-center-col'><div id='acq-total-invoiced-box'></div></td>
169 <td class='acq-invoice-paid-col'><div id='acq-total-paid-box'></div></td>
170 <td class='acq-invoice-center-col'><div id='acq-total-balance-box'></div></td>
174 </div> <!-- tab 1 -->
176 <div dojoType="dijit.layout.ContentPane"
177 class='oils-acq-detail-content-pane' title="[% l('Search') %]">
179 <script type='dojo/connect' event='onShow'>
180 // hide summary info when opening the search tab
181 dojo.byId('acq-invoice-summary-toggle-off').onclick();
182 renderUnifiedSearch();
186 <!-- slim, inline unified search UI -->
187 <div id='oils-acq-invoice-search' _class='hidden'>
189 <div id="acq-unified-form">
191 [%# TODO - i18n - fix constructed string %]
192 <label for="acq-unified-result-type">[% l('Search for') %]</label>
193 <select id="acq-unified-result-type" disabled='disabled'>
194 <option value="lineitem">[% l('line items') %]</option>
196 <label for="acq-unified-conjunction">[% l('matching') %]</label>
197 <select id="acq-unified-conjunction">
198 <option value="and">[% l('all') %]</option>
199 <option value="or">[% l('any') %]</option>
201 <label for="acq-unified-conjunction">
202 [% l('of the following terms') %]
204 <input type="checkbox" id="acq-unified-build-progressively" />
205 <label for="acq-unified-build-progressively">
206 [% l('(building the results list progressively)') %]
209 <div id="acq-unified-terms">
210 <table id="acq-unified-terms-table">
211 <tbody id="acq-unified-terms-tbody">
212 <tr id="acq-unified-terms-row-tmpl"
213 class="acq-unified-terms-row">
215 class="acq-unified-terms-selector"></td>
217 class="acq-unified-terms-match">
219 <option value="">[% l('is') %]</option>
220 <option value="__not">[% l('is NOT') %]</option>
221 <option value="__fuzzy" disabled="disabled">
224 <option value="__not,__fuzzy"
226 [% l('does NOT contain') %]
228 <option value="__lte" disabled="disabled">
229 [% l('is on or BEFORE') %]
231 <option value="__gte" disabled="disabled">
232 [% l('is on or AFTER') %]
234 <option value="__in" disabled="disabled">
235 [% l('matches a term from a file') %]
240 class="acq-unified-terms-widget"></td>
242 class="acq-unified-terms-remove"></td>
247 <div id="acq-unified-add-term">
248 <button onclick="termManager.addRow()">[% l('Add Search Term') %]</button>
250 <table width='100%'><tr>
252 <button onclick="smartSearchSubmitter()">[% l('Search') %]</button>
253 <button onclick='addSelectedToInvoice()'>
254 [% l('Add Selected Items to Invoice') %]
256 <span id='acq-inv-search-prev'>
257 <a href='javascript:performSearch(-1, true)'>[% l('Previous') %]</a>
260 <a href='javascript:performSearch(1, true)'>[% l('Next') %]</a>
264 <input type='checkbox' id='acq-invoice-search-sort-title'/>
265 [% l('Sort by title') %]
266 <span style='padding-left:8px;'>
267 <input type='checkbox' id='acq-invoice-search-limit-invoiceable' checked='checked'/>
268 [% l('Limit to Invoiceable Items') %]
271 </div> <!-- end search form -->
272 <div style='border-bottom:1px solid #888;'>
273 <input type='checkbox' onclick='selectSearchResults()'> [% l('Select All') %]</input>
275 <div id='acq-unified-results-no_results'>
276 <b>[% l('No Results') %]</b>
278 <div id='acq-unified-results-lineitem'>
280 #acq-invoice-search-results-tbody { width: 100%; }
281 #acq-invoice-search-results-tbody td {
283 border-bottom: 1px solid #888;
285 .search-resutls-select-td {
286 padding-right: 8px; border-right: 2px solid #888;
288 .search-results-content-td {
289 padding-left: 8px; border-left: 2px solid #888;
291 .search-results-already-invoiced {
292 background-color: #E99;
296 <tbody id='acq-invoice-search-results-tbody'>
297 <tr id='acq-invoice-search-results-tr'>
298 <td class='search-resutls-select-td'>
299 <input type='checkbox' name='search-results-checkbox'/>
301 <td class='search-results-content-td'>
302 <div name='search-results-content-div'>
303 <img src='[% ctx.media_prefix %]/opac/images/progressbar_green.gif'/>
311 </div> <!-- tab 2 -->
312 </div> <!-- end tabcontainer -->
313 <!--</div>--> <!-- end contentpane -->
315 <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'></div>
316 <div jsId='extraItemsDialog' dojoType="dijit.Dialog" title="[% l('Extra Items') %]">
317 <div dojoType="dijit.layout.ContentPane" style='text-align:center;'>
318 <div id='acq-invoice-extra-copies-message'></div>
320 [% l('Select a fund for the new items: [_1]', '<div id="acq-invoice-extra-copies-fund"></div>') %]
323 <span style='padding-right: 10px;'>
324 <button dojoType='dijit.form.Button' jsId='extraCopiesCancel'>[% l('Cancel') %]</button>
326 <button dojoType='dijit.form.Button' jsId='extraCopiesGo'>[% l('Add New Items') %]</button>
329 <script type="text/javascript">
330 var invoiceId = '[% ctx.page_args.0 %]';
331 window.unifiedSearchExternalMode = true;
333 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/acq/common/base64.js"></script>
334 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/acq/search/unified.js"></script>
335 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/invoice/view.js'> </script>