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