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