1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › [% IF ( date ) %]
3 Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% formatteddatereceived %][% ELSE %]Receive orders from [% name %][% END %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 [% INCLUDE 'greybox.inc' %]
10 <script type="text/javascript" src="[% yuipath %]/json/json-min.js"></script>
11 <script type="text/javascript">
14 dt_overwrite_html_sorting_localeCompare();
16 $(document).ready(function(){
17 var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, {
19 "iCookieDuration": 60*60*24*1000, // 1000 days
20 "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
22 { "aTargets": [ 3, 8, 9 ], "bSortable": false, "bSearchable": false },
25 { "sType": "num-html" },
26 { "sType": "num-html" },
36 "sPaginationType": "four_button"
38 var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, {
40 "iCookieDuration": 60*60*24*1000, // 1000 days
41 "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
43 { "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false },
46 { "sType": "num-html" },
47 { "sType": "num-html" },
56 "sPaginationType": "four_button"
59 $("#pendingt").tablesorter({
60 headers: { 2: { sorter: 'articles' },3: { sorter: false },8:{sorter:false}}
66 // Case-insensitive version of jquery's contains function
67 jQuery.extend(jQuery.expr[':'], {
68 icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0"
71 // Contains exactly function
72 jQuery.extend(jQuery.expr[':'], {
73 containsExactly: "$(a).text() == m[3]"
78 <script type="text/javascript">
80 function confirm_delete_item(ordernumber, basketno, biblionumber) {
81 var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
83 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&invoiceid=[% invoiceid %]";
87 function confirm_delete_biblio(ordernumber, basketno, biblionumber) {
88 var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
90 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1&invoiceid=[% invoiceid %]";
96 <body id="acq_parcel" class="acq">
97 [% INCLUDE 'header.inc' %]
98 [% INCLUDE 'acquisitions-search.inc' %]
100 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
101 [% IF ( datereceived ) %]
102 Receipt summary for <i>[% name %]</i>
104 <i>[ [% invoice %] ]</i>
106 on <i>[% formatteddatereceived %]</i>
108 Receive orders from [% name %]
112 <div id="doc3" class="yui-t2">
117 [% IF ( receive_error ) %]
118 <div class="dialog alert">
119 <h3>Error adding items:</h3>
121 [% FOREACH error_loo IN error_loop %]
122 <li>[% error_loo.error_param %][% IF ( error_loo.error_duplicate_barcode ) %]Duplicate Barcode[% END %] <!-- todo: other error conditions come here. --></li>
128 [% IF ( datereceived ) %]
129 Receipt summary for <i>[% name %]</i> [% IF ( invoice ) %] <i> [ [% invoice %] ] </i>[% END %] on <i>[% formatteddatereceived %]</i>
131 Receive orders from [% name %]
135 [% IF ( success_delorder ) %]
136 <div class="dialog message">The order has been successfully canceled.</div>
138 [% IF ( error_delitem ) %]
139 <div class="dialog alert">The order has been canceled, although one or more items could not have been deleted.</div>
141 [% IF ( error_delbiblio ) %]
142 <div class="dialog alert">The order has been canceled, although the record has not been deleted.</div>
146 [% IF (error_cancelling_receipt) %]
148 Cannot cancel receipt. Possible reasons :
151 The order line you trying to cancel was created from a partial receipt
152 of another order line which is already received. Try to cancel this
156 The order line you trying to cancel was created from a partial receipt
157 of another order line which has been deleted. Cancellation is not
164 <div id="acqui_receive_summary">
165 <p><strong>Invoice number:</strong> [% invoice %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% formatteddatereceived %]</p>
167 [% UNLESS (invoiceclosedate) %]
168 <div id="acqui_receive_search">
169 <h3>Pending orders</h3>
171 [% IF ( loop_orders ) %]<table id="pendingt">
186 <tbody class="filterclass">
187 [% FOREACH loop_order IN loop_orders %]
189 <td class="basketfilterclass"><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_order.basketno %]">[% loop_order.basketno %]</a></td>
190 <td class="orderfilterclass"><a href="neworderempty.pl?ordernumber=[% loop_order.ordernumber %]&booksellerid=[% loop_order.booksellerid %]">[% loop_order.ordernumber %]</a></td>
191 <td class="summaryfilterclass">
192 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_order.biblionumber %]">[% loop_order.title |html %]</a>
193 [% IF ( loop_order.author ) %] by [% loop_order.author %][% END %]
194 [% IF ( loop_order.isbn ) %] – [% loop_order.isbn %][% END %]
195 [% IF ( loop_order.publishercode ) %]<br />Publisher :[% loop_order.publishercode %][% END %]
196 [% IF ( loop_order.suggestionid ) %]
198 Suggested by: [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
199 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&op=show">suggestion #[% loop_order.suggestionid %]</a>)
202 [% IF ( loop_order.notes ) %]
203 <p class="ordernote"><strong>Note: </strong>[% loop_order.notes|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Fbooksellerid=[% loop_order.booksellerid %]&datereceived=[% loop_order.invoicedatereceived %]&invoice=[% loop_order.invoice %]">Change note</a>]</p>
205 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Fbooksellerid=[% loop_order.booksellerid %]&datereceived=[% loop_order.invoicedatereceived %]&invoice=[% loop_order.invoice %]">Add note</a>]
208 <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&id=[% loop_order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
209 <td>[% loop_order.quantity %]</td>
210 <td>[% loop_order.ecost %]</td>
211 <td>[% loop_order.ordertotal %]</td>
212 <td>[% loop_order.budget_name %]</td>
214 <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&invoiceid=[% invoiceid %]">Receive</a>
217 [% IF ( loop_order.left_holds_on_order ) %]
218 <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>
220 <a href="javascript:confirm_delete_item([% loop_order.ordernumber %], [% loop_order.basketno %], [% loop_order.biblionumber %])" class="button">Delete order</a><br>
222 [% IF ( loop_order.can_del_bib ) %]
223 <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %], [% loop_order.basketno %], [% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
225 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
227 [% IF ( loop_order.left_item ) %]
228 <b title="Can't delete catalog record, because of [% loop_order.items %] existing item(s)" >[% loop_order.items %] item(s) left</b><br>
230 [% IF ( loop_order.left_biblio ) %]
231 <b title="Can't delete catalog record, delete other orders linked to it first">[% loop_order.biblios %] order(s) left</b><br>
233 [% IF ( loop_order.left_subscription ) %]
234 <b title="Can't delete catalog record, delete subscriptions first">[% loop_order.subscriptions %] subscription(s) left</b><br>
236 [% IF ( loop_order.left_holds ) %]
237 <b title="Can't delete catalog record or order, cancel holds first">[% loop_order.holds %] hold(s) left</b>
243 </table>[% ELSE %]There are no pending orders.[% END %]
244 <div id="resultnumber">
245 <!-- Row of numbers corresponding to search result pages -->
246 [% IF ( displayprev ) %]
247 <a href="parcel.pl?invoiceid=[% invoiceid %]&startfrom=[% prevstartfrom %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]#resultnumber"><< Previous</a>
249 [% FOREACH number IN numbers %]
250 [% IF ( number.highlight ) %]
251 <span class="current">[% number.number %]</span>
253 <a href="parcel.pl?invoiceid=[% invoiceid %]&startfrom=[% number.startfrom %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]#resultnumber">[% number.number %]</a>
256 [% IF ( displaynext ) %]
257 <a href="parcel.pl?invoiceid=[% invoiceid %]&startfrom=[% nextstartfrom %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]#resultnumber">Next >></a>
263 Invoice is closed, so you can't receive orders anymore.
264 <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">Reopen it</a>.
268 <div id="acqui_receive_receivelist">
269 <h3>Already received</h3>
272 [% IF ( loop_received ) %]
273 <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
274 <table id="receivedt">
290 <th colspan="7" class="total">Total tax exc.</th>
291 <th>[% total_gste %]</th>
294 [% FOREACH book_foot IN book_foot_loop %]
296 <th colspan="7">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th>
297 <th>[% book_foot.value %]</th>
302 <th colspan="7" class="total">Total tax inc.</th>
303 <th>[% total_gsti %]</th>
307 <tbody class="filterclass">
308 [% FOREACH loop_receive IN loop_received %]
310 <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a></td>
311 <td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td>
312 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a>
313 [% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %]
314 [% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %]
315 [% IF ( loop_receive.publishercode ) %]<br />Publisher :[% loop_receive.publishercode %][% END %]
316 [% IF ( loop_receive.suggestionid ) %]
318 Suggested by: [% loop_receive.surnamesuggestedby %][% IF ( loop_receive.firstnamesuggestedby ) %], [% loop_receive.firstnamesuggestedby %] [% END %]
319 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_receive.suggestionid %]&op=show">suggestion #[% loop_receive.suggestionid %]</a>)
322 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_receive.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_receive.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
323 <td>[% loop_receive.quantityreceived %]</td>
324 <td>[% loop_receive.ecost %]</td>
325 <td>[% loop_receive.unitprice %]</td>
326 <td>[% loop_receive.total %]</td>
328 [% IF (loop_receive.cannot_cancel) %]
329 [% span_title = BLOCK %]
330 Cannot cancel receipt of this order line because it
331 was created from a partial receipt of order line no.
332 [% loop_receive.parent_ordernumber %], which is
333 already received. Try cancelling this one first and
336 <span title="[% span_title | collapse %]">
340 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% loop_receive.ordernumber %]">Cancel receipt</a>
348 [% ELSE %]There are no received orders.[% END %]
351 <!--<form action="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]" method="post">-->
352 [% IF (invoiceclosedate) %]
353 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a>
355 <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
356 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
357 <fieldset class="action">
358 <input type="submit" value="Finish receiving" />
366 <form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
367 <fieldset class="brief">
374 <label for="summaryfilter">ISBN, author or title :</label>
375 <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]"/>
379 <label for="basketfilter">Basket :</label>
380 <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]"/>
384 <label for="orderfilter">Order line :</label>
385 <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]"/>
389 <label for="eanfilter">EAN :</label>
390 <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]"/>
394 <fieldset class="action">
395 <input type="hidden" value="search" name="op" />
396 <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
397 <input type="submit" value="Filter" />
398 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Clear</a>
404 [% INCLUDE 'acquisitions-menu.inc' %]
407 [% INCLUDE 'intranet-bottom.inc' %]