Bug 11744: A receipt should not be cancelled if holds exist
[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 confirm_delete_item(ordernumber, basketno, biblionumber) {
122                 var is_confirmed = confirm(_("Are you sure you want to delete this order ?"));
123                 if (is_confirmed) {
124                     window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&invoiceid=[% invoiceid %]";
125                 }
126             }
127             
128             function confirm_delete_biblio(ordernumber, basketno, biblionumber) {
129                 var is_confirmed = confirm(_("Are you sure you want to delete this catalog record and order ?"));
130                 if (is_confirmed) {
131                     window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1&invoiceid=[% invoiceid %]";
132                     }
133             }
134
135             function transfer_order_popup(ordernumber) {
136                 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
137                     + "ordernumber=" + ordernumber
138                 window.open(url, 'TransferOrder');
139             }
140
141 //]]>
142 </script>
143 </head>
144 <body id="acq_parcel" class="acq">
145 [% INCLUDE 'header.inc' %]
146 [% INCLUDE 'acquisitions-search.inc' %]
147
148 <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;
149     [% IF ( datereceived ) %]
150         Receipt summary for <i>[% name %]</i>
151         [% IF ( invoice ) %]
152             <i>[ [% invoice %] ]</i>
153         [% END %]
154         on <i>[% formatteddatereceived %]</i>
155     [% ELSE %]
156         Receive orders from [% name %]
157     [% END %]
158 </div>
159
160 <div id="doc3" class="yui-t2">
161
162    <div id="bd">
163         <div id="yui-main">
164         <div class="yui-b">
165         [% IF ( receive_error ) %]
166         <div class="dialog alert">
167         <h3>Error adding items:</h3>
168         <ul>
169         [% FOREACH error_loo IN error_loop %]
170                 <li>[% error_loo.error_param %][% IF ( error_loo.error_duplicate_barcode ) %]Duplicate Barcode[% END %] <!-- todo: other error conditions come here. --></li>
171         [% END %]
172         </ul>
173         </div>
174         [% END %]
175     <h1>
176         [% IF ( datereceived ) %]
177             Receipt summary for <i>[% name %]</i> [% IF ( invoice ) %] <i> [ [% invoice %] ] </i>[% END %] on <i>[% formatteddatereceived %]</i>
178         [% ELSE %]
179             Receive orders from [% name %]
180         [% END %]
181     </h1>
182
183     [% IF ( success_delorder ) %]
184     <div class="dialog message">The order has been successfully canceled.</div>
185     [% ELSE %]
186         [% IF ( error_delitem ) %]
187             <div class="dialog alert">The order has been canceled, although one or more items could not have been deleted.</div>
188         [% END %]
189         [% IF ( error_delbiblio ) %]
190             <div class="dialog alert">The order has been canceled, although the record has not been deleted.</div>
191         [% END %]
192     [% END %]
193
194     [% IF (error_cancelling_receipt) %]
195       <div class="dialog error">
196       Cannot cancel receipt. Possible reasons :
197       <ul>
198         <li>
199           The order line you trying to cancel was created from a partial receipt
200           of another order line which is already received. Try to cancel this
201           one first and retry.
202         </li>
203         <li>
204           The order line you trying to cancel was created from a partial receipt
205           of another order line which has been deleted. Cancellation is not
206           possible.
207         </li>
208       </ul>
209       </div>
210     [% END %]
211
212     [% IF error_invoice_not_known %]
213         <div class="dialog error">
214             The invoice referenced by this invoiceid does not exist.
215         </div>
216     [% END %]
217
218 [% UNLESS no_orders_to_display %]
219 <div id="acqui_receive_summary">
220 <p><strong>Invoice number:</strong> [% invoice %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% formatteddatereceived %]</p>
221 </div>
222 [% UNLESS (invoiceclosedate) %]
223   <div id="acqui_receive_search">
224     <h3>Pending orders</h3>
225
226     [% IF ( loop_orders ) %]
227       <table id="pendingt">
228         <thead>
229           <tr>
230             <th>Basket search</th>
231             <th>Basket group search</th>
232             <th>Order line search</th>
233             <th>Summary search</th>
234             <th>&nbsp;</th>
235             <th>Quantity search</th>
236             <th>Unit cost search</th>
237             <th>Order cost search</th>
238             <th>Fund search</th>
239             <th>&nbsp;</th>
240             <th>&nbsp;</th>
241           </tr>
242           <tr>
243             <th>Basket</th>
244             <th>Basket group</th>
245             <th>Order line</th>
246             <th>Summary</th>
247             <th>View record</th>
248             <th>Quantity</th>
249             <th>Unit cost</th>
250             <th>Order cost</th>
251             <th>Fund</th>
252             <th>&nbsp;</th>
253             <th>&nbsp;</th>
254           </tr>
255         </thead>
256         <tbody class="filterclass">
257         [% FOREACH loop_order IN loop_orders %]
258             <tr>
259                 <td class="basketfilterclass">[% loop_order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_order.basketno %]">[% loop_order.basketno %]</a>)</td>
260                 <td>
261                   [% IF loop_order.basketgroupid %]
262                     [% loop_order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% loop_order.booksellerid %]">[% loop_order.basketgroupid %]</a>)
263                   [% ELSE %]
264                     No basket group
265                   [% END %]
266                 </td>
267                 <td class="orderfilterclass"><a href="neworderempty.pl?ordernumber=[% loop_order.ordernumber %]&amp;booksellerid=[% loop_order.booksellerid %]">[% loop_order.ordernumber %]</a></td>
268                 <td class="summaryfilterclass">
269                   <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_order.biblionumber %]">[% loop_order.title |html %]</a>
270                 [% IF ( loop_order.author ) %] by [% loop_order.author %][% END %]
271                 [% IF ( loop_order.isbn ) %] &ndash; [% loop_order.isbn %][% END %]
272                 [% IF ( loop_order.publishercode ) %]<br />Publisher:[% loop_order.publishercode %][% END %]
273                 [% IF ( loop_order.suggestionid ) %]
274                     <br/>
275                     Suggested by: [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
276                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&amp;op=show">suggestion #[% loop_order.suggestionid %]</a>)
277                 [% END %]
278                 <br />
279                 [% IF ( loop_order.order_internalnote ) %]
280                     <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>
281                 [% ELSE %]
282                     [<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>]
283                 [% END %]
284                 [% IF ( loop_order.order_vendornote ) %]
285                     <p class="ordernote"><strong>Vendor note: </strong>[% loop_order.order_vendornote|html %]</p>
286                 [% ELSE %]
287                     [<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>]
288                 [% END %]
289                 </td>
290                 <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>
291                 <td>[% loop_order.quantity %]</td>
292                 <td>[% loop_order.ecost %]</td>
293                 <td>[% loop_order.ordertotal %]</td>
294                 <td>[% loop_order.budget_name %]</td>
295                                 <td>
296                               <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
297                     <br />
298                     <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
299                                 </td>
300                                 <td>
301                         [% IF ( loop_order.left_holds_on_order ) %]
302                         <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>
303                         [% ELSE %]
304                         <a href="javascript:confirm_delete_item([% loop_order.ordernumber %], [% loop_order.basketno %], [% loop_order.biblionumber %])" class="button">Delete order</a><br>
305                         [% END %]
306                         [% IF ( loop_order.can_del_bib ) %]
307                         <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %], [% loop_order.basketno %], [% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
308                         [% ELSE %]
309                         <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
310                         [% END %]
311                         [% IF ( loop_order.left_item ) %]
312                         <b title="Can't delete catalog record, because of [% loop_order.items %] existing item(s)" >[% loop_order.items %] item(s) left</b><br>
313                         [% END %]
314                         [% IF ( loop_order.left_biblio ) %]
315                         <b title="Can't delete catalog record, delete other orders linked to it first">[% loop_order.biblios %] order(s) left</b><br>
316                         [% END %]
317                         [% IF ( loop_order.left_subscription ) %]
318                         <b title="Can't delete catalog record, delete subscriptions first">[% loop_order.subscriptions %] subscription(s) left</b><br>
319                         [% END %]
320                         [% IF ( loop_order.left_holds ) %]
321                         <b title="Can't delete catalog record or order, cancel holds first">[% loop_order.holds %] hold(s) left</b>
322                         [% END %]
323                     </td>
324                 </tr>
325         [% END %]
326         </tbody>
327       </table>
328     [% ELSE %]There are no pending orders.[% END %]
329   </div>
330 [% ELSE %]
331     <p>
332         Invoice is closed, so you can't receive orders anymore.
333         <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">Reopen it</a>.
334     </p>
335 [% END %]
336
337 <div id="acqui_receive_receivelist">
338     <h3>Already received</h3>
339
340
341    [% IF ( loop_received ) %]
342        [% SET funds = {} %]
343        [% SET estimated_total = 0 %]
344
345        [% FOREACH loop_receive IN loop_received %]
346            [% IF (funds.${ loop_receive.budget.budget_name }.estimated == '') %]
347               [% SET funds.${ loop_receive.budget.budget_name }.estimated = 0 %]
348            [% END %]
349            [% IF (funds.${ loop_receive.budget.budget_name }.actual == '') %]
350               [% SET funds.${ loop_receive.budget.budget_name }.actual = 0 %]
351            [% END %]
352            [% SET estimated_total = estimated_total + ( loop_receive.ecost * loop_receive.quantityreceived ) %]
353            [% SET funds.${ loop_receive.budget.budget_name }.estimated = funds.${ loop_receive.budget.budget_name }.estimated + ( loop_receive.ecost * loop_receive.quantityreceived )%]
354            [% SET funds.${ loop_receive.budget.budget_name }.actual = funds.${ loop_receive.budget.budget_name }.actual + loop_receive.total %]
355        [% END %]
356
357    <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
358     <table id="receivedt">
359       <thead>
360         <tr>
361           <th>Basket</th>
362           <th>Basket group</th>
363           <th>Order line</th>
364           <th>Holds</th>
365           <th>Summary</th>
366           <th>View record</th>
367           <th>Quantity</th>
368           <th>Fund</th>
369           <th>Est cost</th>
370           <th>Actual cost</th>
371           <th>TOTAL</th>
372           <th></th>
373         </tr>
374       </thead>
375     <tfoot>
376         [% FOREACH key IN funds.keys.sort %]
377             <tr>
378                 <td colspan="6" class="total">(Tax exc.)</td>
379                 <td><i>Subtotal for</i> [% key %]</td>
380                 <td>[% currency( funds.$key.estimated ) %]</td>
381                 <td>[% currency( funds.$key.actual ) %]</td>
382                 <td>&nbsp;</td>
383                 <td>&nbsp;</td>
384             </tr>
385         [% END %]
386         <tr>
387             <th colspan="10" class="total">Total tax exc.</th>
388             <th>[% total_gste %]</th>
389             <th></th>
390         </tr>
391         [% FOREACH book_foot IN book_foot_loop %]
392             <tr>
393                 <th colspan="10">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th>
394                 <th>[% book_foot.value %]</th>
395                 <th></th>
396             </tr>
397         [% END %]
398         <tr>
399             <th colspan="10" class="total">Total tax inc.</th>
400             <th>[% total_gsti %]</th>
401             <th></th>
402         </tr>
403     </tfoot>
404     <tbody class="filterclass">
405         [% FOREACH order IN loop_received %]
406             <tr>
407                 <td>[% order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
408                 <td>
409                   [% IF order.basketgroupid %]
410                     [% order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% order.booksellerid %]">[% order.basketgroupid %]</a>)
411                   [% ELSE %]
412                     No basket group
413                   [% END %]
414                 </td>
415                 <td>
416                   <a href="neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% booksellerid %]">[% order.ordernumber %]</a>
417                   [% IF (order.parent_ordernumber && (order.parent_ordernumber != order.ordernumber)) %]
418                     (<a href="neworderempty.pl?ordernumber=[% order.parent_ordernumber %]&amp;booksellerid=[% booksellerid %]" title="Original order line">[% order.parent_ordernumber %]</a>)
419                   [% END %]
420                 </td>
421                 <td>
422                   [% IF order.holds > 0 %]
423                     <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.holds %]</a></span>
424                   [% ELSE %]
425                     0
426                   [% END %]
427                 </td>
428                 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
429                 [% IF ( order.author ) %] / [% order.author %][% END %]
430                 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
431                 [% IF ( order.publishercode ) %]<br />Publisher :[% order.publishercode %][% END %]
432                 [% IF ( order.suggestionid ) %]
433                     <br/>
434                     Suggested by: [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %]
435                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&amp;op=show">suggestion #[% order.suggestionid %]</a>)
436                 [% END %]
437                 </td>
438                 <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>
439                 <td>[% order.quantityreceived %]</td>
440                 <td>[% order.budget.budget_name %]</td>
441                 <td>[% order.ecost %]</td>
442                 <td>[% order.unitprice %]</td>
443                 <td>[% order.total %]</td>
444                 <td>
445                     [% IF loop_receive.cannot_cancel or ( Koha.Preference("AcqCreateItem") == "receiving" and loop_receive.holds > 0 ) %]
446                       [% IF loop_receive.cannot_cancel %]
447                         [% span_title = BLOCK %]
448                             Cannot cancel receipt of this order line because it
449                             was created from a partial receipt of order line no.
450                             [% order.parent_ordernumber %], which is
451                             already received. Try cancelling this one first and
452                             retry.
453                         [% END %]
454                       [% ELSE %]
455                         [%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %]
456                         [%# Some additional checks should be added in the pl file %]
457                         [% span_title = BLOCK %]
458                           Cannot cancel receipt of this order line because at least one reservation exists on the records.
459                         [% END %]
460                       [% END %]
461                       <span title="[% span_title | collapse %]">
462                           Can't cancel receipt
463                       </span>
464                     [% ELSE %]
465                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a>
466                     [% END %]
467                 </td>
468             </tr>
469             [% END %]
470         </tbody>
471     </table>
472     </form>
473         [% ELSE %]There are no received orders.[% END %]
474 </div>
475
476 [% IF (invoiceclosedate) %]
477     <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a>
478 [% ELSE %]
479     <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
480         <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
481         <fieldset class="action">
482             <input type="submit" value="Finish receiving" />
483         </fieldset>
484     </form>
485 [% END %]
486
487 [% END %]
488
489 </div>
490 </div>
491
492
493 <div class="yui-b">
494 <form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
495   <fieldset class="brief">
496     <h4>Filter</h4>
497     <ol>
498       <li>
499         <label for="summaryfilter">ISBN, author or title :</label>
500         <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]"/>
501       </li>
502       <li>
503         <label for="basketfilter">Basket :</label>
504         <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]"/>
505       </li>
506       <li>
507           <label for="basketgroupnamefilter">Basket group name :</label>
508           <input type="text" name="basketgroupnamefilter" id="basketgroupnamefilter" value="[% basketgroupnamefilter %]" />
509       </li>
510       <li>
511         <label for="orderfilter">Order line :</label>
512         <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]"/>
513       </li>
514       [% IF (UNIMARC) %]
515         <li>
516           <label for="eanfilter">EAN :</label>
517           <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]"/>
518         </li>
519       [% END %]
520     </ol>
521     <fieldset class="action">
522       <input type="hidden" value="search" name="op" />
523       <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
524       <input type="submit" value="Filter" />
525       <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Clear</a>
526     </fieldset>
527   </fieldset>
528 </form>
529 [% INCLUDE 'acquisitions-menu.inc' %]
530 </div>
531 </div>
532 [% INCLUDE 'intranet-bottom.inc' %]