Bug 11864: (code cleanup) re-indent parcel.tt and rename a variable
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / parcel.tt
1 [% USE currency = format('%.2f') -%]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( date ) %]
4             Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% formatteddatereceived %][% ELSE %]Receive orders from [% name %][% END %]</title>
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
9 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
10 [% INCLUDE 'greybox.inc' %]
11 <script type="text/javascript">
12 //<![CDATA[
13
14     dt_overwrite_html_sorting_localeCompare();
15
16     var sticky_filters = [% sticky_filters %];
17
18     $(document).ready(function(){
19       if ( $("#pendingt").length ) {
20         var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, {
21             "bStateSave": true,
22             "iCookieDuration": 60*60*24*1000, // 1000 days
23             "iDisplayLength": 10,
24             "aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]],
25             "aoColumnDefs": [
26                 { "aTargets": [ 4, 9, 10 ], "bSortable": false, "bSearchable": false },
27             ],
28             "aoColumns": [
29                 { "sType": "html" },
30                 { "sType": "html" },
31                 { "sType": "num-html" },
32                 { "sType": "html" },
33                 null,
34                 null,
35                 null,
36                 null,
37                 null,
38                 null,
39                 null,
40             ],
41             'bAutoWidth': false,
42             "sPaginationType": "four_button"
43         } )
44         ).columnFilter({
45             sPlaceHolder: "head:after",
46             aoColumns: [
47                 { type: "text" },
48                 { type: "text" },
49                 { type: "text" },
50                 { type: "text" },
51                 null,
52                 { type: "text" },
53                 { type: "text" },
54                 { type: "text" },
55                 { type: "text" },
56                 null,
57                 null
58             ]
59         });
60       }
61
62       if ( $("#receivedt").length ) {
63         var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, {
64             "bStateSave": true,
65             "iCookieDuration": 60*60*24*1000, // 1000 days
66             "iDisplayLength": 10,
67             "aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]],
68             "aoColumnDefs": [
69                 { "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false },
70             ],
71             "aoColumns": [
72                 { "sType": "html" },
73                 { "sType": "html" },
74                 { "sType": "html" },
75                 { "sType": "num-html" },
76                 null,
77                 null,
78                 null,
79                 null,
80                 null,
81                 null,
82                 null,
83                 null
84             ],
85             "sPaginationType": "four_button"
86         } ) );
87       }
88
89       // Keep filters from finishreceive.pl to parcel.pl
90       $.cookie("filter_parcel_summary", $("#summaryfilter").val());
91       $.cookie("filter_parcel_basketname", $("#basketfilter").val());
92       $.cookie("filter_parcel_orderno", $("#orderfilter").val());
93       $.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val());
94       $.cookie("filter_parcel_ean", $("#eanfilter").val());
95
96       $("#filterform").on('submit', function(){
97         $.cookie("filter_parcel_summary", $("#summaryfilter").val());
98         $.cookie("filter_parcel_basketname", $("#basketfilter").val());
99         $.cookie("filter_parcel_orderno", $("#orderfilter").val());
100         $.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val());
101         $.cookie("filter_parcel_ean", $("#eanfilter").val());
102       });
103
104     });
105
106      // Case-insensitive version of jquery's contains function
107      jQuery.extend(jQuery.expr[':'], {
108             icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0"
109      });
110
111      // Contains exactly function
112      jQuery.extend(jQuery.expr[':'], {
113           containsExactly: "$(a).text() == m[3]"
114      });
115
116 //]]>
117 </script>
118 <script type="text/javascript">
119 //<![CDATA[
120             function confirm_delete_item(ordernumber, basketno, biblionumber) {
121                 var is_confirmed = confirm(_("Are you sure you want to delete this order ?"));
122                 if (is_confirmed) {
123                     window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&invoiceid=[% invoiceid %]";
124                 }
125             }
126             
127             function confirm_delete_biblio(ordernumber, basketno, biblionumber) {
128                 var is_confirmed = confirm(_("Are you sure you want to delete this catalog record and order ?"));
129                 if (is_confirmed) {
130                     window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1&invoiceid=[% invoiceid %]";
131                     }
132             }
133
134             function transfer_order_popup(ordernumber) {
135                 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
136                     + "ordernumber=" + ordernumber
137                 window.open(url, 'TransferOrder');
138             }
139
140 //]]>
141 </script>
142 </head>
143 <body id="acq_parcel" class="acq">
144 [% INCLUDE 'header.inc' %]
145 [% INCLUDE 'acquisitions-search.inc' %]
146
147 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
148     [% IF ( datereceived ) %]
149         Receipt summary for <i>[% name %]</i>
150         [% IF ( invoice ) %]
151             <i>[ [% invoice %] ]</i>
152         [% END %]
153         on <i>[% formatteddatereceived %]</i>
154     [% ELSE %]
155         Receive orders from [% name %]
156     [% END %]
157 </div>
158
159 <div id="doc3" class="yui-t2">
160
161    <div id="bd">
162         <div id="yui-main">
163         <div class="yui-b">
164         [% IF ( receive_error ) %]
165         <div class="dialog alert">
166         <h3>Error adding items:</h3>
167         <ul>
168         [% FOREACH error_loo IN error_loop %]
169                 <li>[% error_loo.error_param %][% IF ( error_loo.error_duplicate_barcode ) %]Duplicate Barcode[% END %] <!-- todo: other error conditions come here. --></li>
170         [% END %]
171         </ul>
172         </div>
173         [% END %]
174     <h1>
175         [% IF ( datereceived ) %]
176             Receipt summary for <i>[% name %]</i> [% IF ( invoice ) %] <i> [ [% invoice %] ] </i>[% END %] on <i>[% formatteddatereceived %]</i>
177         [% ELSE %]
178             Receive orders from [% name %]
179         [% END %]
180     </h1>
181
182     [% IF ( success_delorder ) %]
183     <div class="dialog message">The order has been successfully canceled.</div>
184     [% ELSE %]
185         [% IF ( error_delitem ) %]
186             <div class="dialog alert">The order has been canceled, although one or more items could not have been deleted.</div>
187         [% END %]
188         [% IF ( error_delbiblio ) %]
189             <div class="dialog alert">The order has been canceled, although the record has not been deleted.</div>
190         [% END %]
191     [% END %]
192
193     [% IF (error_cancelling_receipt) %]
194       <div class="dialog error">
195       Cannot cancel receipt. Possible reasons :
196       <ul>
197         <li>
198           The order line you trying to cancel was created from a partial receipt
199           of another order line which is already received. Try to cancel this
200           one first and retry.
201         </li>
202         <li>
203           The order line you trying to cancel was created from a partial receipt
204           of another order line which has been deleted. Cancellation is not
205           possible.
206         </li>
207       </ul>
208       </div>
209     [% END %]
210
211     [% IF error_invoice_not_known %]
212         <div class="dialog error">
213             The invoice referenced by this invoiceid does not exist.
214         </div>
215     [% END %]
216
217 [% UNLESS no_orders_to_display %]
218 <div id="acqui_receive_summary">
219 <p><strong>Invoice number:</strong> [% invoice %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% formatteddatereceived %]</p>
220 </div>
221 [% UNLESS (invoiceclosedate) %]
222   <div id="acqui_receive_search">
223     <h3>Pending orders</h3>
224
225     [% IF ( loop_orders ) %]
226       <table id="pendingt">
227         <thead>
228           <tr>
229             <th>Basket search</th>
230             <th>Basket group search</th>
231             <th>Order line search</th>
232             <th>Summary search</th>
233             <th>&nbsp;</th>
234             <th>Quantity search</th>
235             <th>Unit cost search</th>
236             <th>Order cost search</th>
237             <th>Fund search</th>
238             <th>&nbsp;</th>
239             <th>&nbsp;</th>
240           </tr>
241           <tr>
242             <th>Basket</th>
243             <th>Basket group</th>
244             <th>Order line</th>
245             <th>Summary</th>
246             <th>View record</th>
247             <th>Quantity</th>
248             <th>Unit cost</th>
249             <th>Order cost</th>
250             <th>Fund</th>
251             <th>&nbsp;</th>
252             <th>&nbsp;</th>
253           </tr>
254         </thead>
255         <tbody class="filterclass">
256         [% FOREACH loop_order IN loop_orders %]
257             <tr>
258                 <td class="basketfilterclass">[% loop_order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_order.basketno %]">[% loop_order.basketno %]</a>)</td>
259                 <td>
260                   [% IF loop_order.basketgroupid %]
261                     [% loop_order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% loop_order.booksellerid %]">[% loop_order.basketgroupid %]</a>)
262                   [% ELSE %]
263                     No basket group
264                   [% END %]
265                 </td>
266                 <td class="orderfilterclass"><a href="neworderempty.pl?ordernumber=[% loop_order.ordernumber %]&amp;booksellerid=[% loop_order.booksellerid %]">[% loop_order.ordernumber %]</a></td>
267                 <td class="summaryfilterclass">
268                   <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_order.biblionumber %]">[% loop_order.title |html %]</a>
269                 [% IF ( loop_order.author ) %] by [% loop_order.author %][% END %]
270                 [% IF ( loop_order.isbn ) %] &ndash; [% loop_order.isbn %][% END %]
271                 [% IF ( loop_order.publishercode ) %]<br />Publisher:[% loop_order.publishercode %][% END %]
272                 [% IF ( loop_order.suggestionid ) %]
273                     <br/>
274                     Suggested by: [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
275                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&amp;op=show">suggestion #[% loop_order.suggestionid %]</a>)
276                 [% END %]
277                 <br />
278                 [% IF ( loop_order.order_internalnote ) %]
279                     f<p class="ordernote"><strong>Internal note: </strong>[% loop_order.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">Change internal note</a>]</p>
280                 [% ELSE %]
281                     [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">Add internal note</a>]
282                 [% END %]
283                 [% IF ( loop_order.order_vendornote ) %]
284                     <p class="ordernote"><strong>Vendor note: </strong>[% loop_order.order_vendornote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">Change vendor note</a>]</p>
285                 [% ELSE %]
286                     [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">Add vendor note</a>]
287                 [% END %]
288                 </td>
289                 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% loop_order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
290                 <td>[% loop_order.quantity %]</td>
291                 <td>[% loop_order.ecost %]</td>
292                 <td>[% loop_order.ordertotal %]</td>
293                 <td>[% loop_order.budget_name %]</td>
294                                 <td>
295                               <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
296                     <br />
297                     <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
298                                 </td>
299                                 <td>
300                         [% IF ( loop_order.left_holds_on_order ) %]
301                         <span class="button" title="Can't delete order, ([% loop_order.holds_on_order %]) holds are linked with this order cancel holds first">Can't delete order</span><br>
302                         [% ELSE %]
303                         <a href="javascript:confirm_delete_item([% loop_order.ordernumber %], [% loop_order.basketno %], [% loop_order.biblionumber %])" class="button">Delete order</a><br>
304                         [% END %]
305                         [% IF ( loop_order.can_del_bib ) %]
306                         <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %], [% loop_order.basketno %], [% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
307                         [% ELSE %]
308                         <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
309                         [% END %]
310                         [% IF ( loop_order.left_item ) %]
311                         <b title="Can't delete catalog record, because of [% loop_order.items %] existing item(s)" >[% loop_order.items %] item(s) left</b><br>
312                         [% END %]
313                         [% IF ( loop_order.left_biblio ) %]
314                         <b title="Can't delete catalog record, delete other orders linked to it first">[% loop_order.biblios %] order(s) left</b><br>
315                         [% END %]
316                         [% IF ( loop_order.left_subscription ) %]
317                         <b title="Can't delete catalog record, delete subscriptions first">[% loop_order.subscriptions %] subscription(s) left</b><br>
318                         [% END %]
319                         [% IF ( loop_order.left_holds ) %]
320                         <b title="Can't delete catalog record or order, cancel holds first">[% loop_order.holds %] hold(s) left</b>
321                         [% END %]
322                     </td>
323                 </tr>
324         [% END %]
325         </tbody>
326       </table>
327     [% ELSE %]There are no pending orders.[% END %]
328   </div>
329 [% ELSE %]
330     <p>
331         Invoice is closed, so you can't receive orders anymore.
332         <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">Reopen it</a>.
333     </p>
334 [% END %]
335
336 <div id="acqui_receive_receivelist">
337     <h3>Already received</h3>
338
339
340    [% IF ( loop_received ) %]
341        [% SET funds = {} %]
342        [% SET estimated_total = 0 %]
343
344        [% FOREACH loop_receive IN loop_received %]
345            [% IF (funds.${ loop_receive.budget.budget_name }.estimated == '') %]
346               [% SET funds.${ loop_receive.budget.budget_name }.estimated = 0 %]
347            [% END %]
348            [% IF (funds.${ loop_receive.budget.budget_name }.actual == '') %]
349               [% SET funds.${ loop_receive.budget.budget_name }.actual = 0 %]
350            [% END %]
351            [% SET estimated_total = estimated_total + ( loop_receive.ecost * loop_receive.quantityreceived ) %]
352            [% SET funds.${ loop_receive.budget.budget_name }.estimated = funds.${ loop_receive.budget.budget_name }.estimated + ( loop_receive.ecost * loop_receive.quantityreceived )%]
353            [% SET funds.${ loop_receive.budget.budget_name }.actual = funds.${ loop_receive.budget.budget_name }.actual + loop_receive.total %]
354        [% END %]
355
356    <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
357     <table id="receivedt">
358       <thead>
359         <tr>
360           <th>Basket</th>
361           <th>Basket group</th>
362           <th>Order line</th>
363           <th>Holds</th>
364           <th>Summary</th>
365           <th>View record</th>
366           <th>Quantity</th>
367           <th>Fund</th>
368           <th>Est cost</th>
369           <th>Actual cost</th>
370           <th>TOTAL</th>
371           <th></th>
372         </tr>
373       </thead>
374     <tfoot>
375         [% FOREACH key IN funds.keys.sort %]
376             <tr>
377                 <td colspan="6" class="total">(Tax exc.)</td>
378                 <td><i>Subtotal for</i> [% key %]</td>
379                 <td>[% currency( funds.$key.estimated ) %]</td>
380                 <td>[% currency( funds.$key.actual ) %]</td>
381                 <td>&nbsp;</td>
382                 <td>&nbsp;</td>
383             </tr>
384         [% END %]
385         <tr>
386             <th colspan="10" class="total">Total tax exc.</th>
387             <th>[% total_gste %]</th>
388             <th></th>
389         </tr>
390         [% FOREACH book_foot IN book_foot_loop %]
391             <tr>
392                 <th colspan="10">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th>
393                 <th>[% book_foot.value %]</th>
394                 <th></th>
395             </tr>
396         [% END %]
397         <tr>
398             <th colspan="10" class="total">Total tax inc.</th>
399             <th>[% total_gsti %]</th>
400             <th></th>
401         </tr>
402     </tfoot>
403     <tbody class="filterclass">
404         [% FOREACH order IN loop_received %]
405             <tr>
406                 <td>[% order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
407                 <td>
408                   [% IF order.basketgroupid %]
409                     [% order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% order.booksellerid %]">[% order.basketgroupid %]</a>)
410                   [% ELSE %]
411                     No basket group
412                   [% END %]
413                 </td>
414                 <td><a href="neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% booksellerid %]">[% order.ordernumber %]</a></td>
415                 <td>
416                   [% IF order.holds > 0 %]
417                     <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.holds %]</a></span>
418                   [% ELSE %]
419                     0
420                   [% END %]
421                 </td>
422                 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
423                 [% IF ( order.author ) %] / [% order.author %][% END %]
424                 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
425                 [% IF ( order.publishercode ) %]<br />Publisher :[% order.publishercode %][% END %]
426                 [% IF ( order.suggestionid ) %]
427                     <br/>
428                     Suggested by: [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %]
429                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&amp;op=show">suggestion #[% order.suggestionid %]</a>)
430                 [% END %]
431                 </td>
432                 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
433                 <td>[% order.quantityreceived %]</td>
434                 <td>[% order.budget.budget_name %]</td>
435                 <td>[% order.ecost %]</td>
436                 <td>[% order.unitprice %]</td>
437                 <td>[% order.total %]</td>
438                 <td>
439                     [% IF (order.cannot_cancel) %]
440                         [% span_title = BLOCK %]
441                             Cannot cancel receipt of this order line because it
442                             was created from a partial receipt of order line no.
443                             [% order.parent_ordernumber %], which is
444                             already received. Try cancelling this one first and
445                             retry.
446                         [% END %]
447                         <span title="[% span_title | collapse %]">
448                             Can't cancel receipt
449                         </span>
450                     [% ELSE %]
451                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a>
452                     [% END %]
453                 </td>
454             </tr>
455             [% END %]
456         </tbody>
457     </table>
458     </form>
459         [% ELSE %]There are no received orders.[% END %]
460 </div>
461
462 [% IF (invoiceclosedate) %]
463     <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a>
464 [% ELSE %]
465     <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
466         <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
467         <fieldset class="action">
468             <input type="submit" value="Finish receiving" />
469         </fieldset>
470     </form>
471 [% END %]
472
473 [% END %]
474
475 </div>
476 </div>
477
478
479 <div class="yui-b">
480 <form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
481   <fieldset class="brief">
482     <h4>Filter</h4>
483     <ol>
484       <li>
485         <label for="summaryfilter">ISBN, author or title :</label>
486         <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]"/>
487       </li>
488       <li>
489         <label for="basketfilter">Basket :</label>
490         <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]"/>
491       </li>
492       <li>
493           <label for="basketgroupnamefilter">Basket group name :</label>
494           <input type="text" name="basketgroupnamefilter" id="basketgroupnamefilter" value="[% basketgroupnamefilter %]" />
495       </li>
496       <li>
497         <label for="orderfilter">Order line :</label>
498         <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]"/>
499       </li>
500       [% IF (UNIMARC) %]
501         <li>
502           <label for="eanfilter">EAN :</label>
503           <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]"/>
504         </li>
505       [% END %]
506     </ol>
507     <fieldset class="action">
508       <input type="hidden" value="search" name="op" />
509       <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
510       <input type="submit" value="Filter" />
511       <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Clear</a>
512     </fieldset>
513   </fieldset>
514 </form>
515 [% INCLUDE 'acquisitions-menu.inc' %]
516 </div>
517 </div>
518 [% INCLUDE 'intranet-bottom.inc' %]