3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</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">
12 function updateColumnsVisibility(visible) {
14 $("table .gste, .gsti").show();
16 [% IF ( listincgst ) %]
17 $("table .gste").hide();
19 $("table .gsti").hide();
24 $(document).ready(function() {
25 $("#show_all_details").click(function(){
26 updateColumnsVisibility($(this+":checked").val());
29 $("#show_all_details").attr('checked', false);
30 updateColumnsVisibility(false);
31 [% UNLESS ( closedate ) %]
32 $('#addtoBasket').on('show', function () {
33 $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML);
40 [% UNLESS ( closedate ) %]
41 <script type="text/javascript">
44 function delete_basket(basketno,booksellerid,delbiblio) {
45 window.location = "[% script_name %]?op=delete_confirm&delbiblio="+delbiblio+"&basketno="+basketno+"&booksellerid="+booksellerid;
48 function transfer_order_popup(ordernumber) {
49 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
50 + "ordernumber=" + ordernumber
51 window.open(url, 'TransferOrder','width=600,height=400,toolbar=false,scrollbars=yes');
54 function confirm_ediorder() {
55 var is_confirmed = confirm(_("Are you sure you want to close this basket and generate an Edifact order?"));
57 window.location = "[% script_name %]?op=edi_confirm&basketno=[% basketno %]";
64 <script type="text/javascript">
66 $(document).ready(function(){
67 $("#basketgroupid").change(function(){
68 if($(this).val() == "new"){
69 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
75 [% UNLESS ( grouped ) %]
76 <script type="text/javascript">
78 function confirm_reopen() {
79 var skip = [% IF ( skip_confirm_reopen ) %] 1 [% ELSE %] 0 [% END %];
80 var is_confirmed = skip || confirm(_("Are you sure you want to reopen this basket?"));
82 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
89 <script type="text/javascript">
91 $(document).ready(function() {
92 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
93 "sPaginationType": "four_button",
95 [% UNLESS ( closedate ) %]
97 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
102 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
103 "sPaginationType": "four_button"
105 $("#reopenbutton").on("click",function(e){
111 function UserSearchPopup(f) {
113 "/cgi-bin/koha/acqui/add_user_search.pl",
115 'width=740, height=450, scrollbars=yes, toolbar=no,'
119 function add_user(borrowernumber, borrowername) {
120 var ids = $("#users_ids").val();
122 ids = ids.split(':');
126 if (ids.indexOf(borrowernumber) < 0) {
127 ids.push(borrowernumber);
128 $("#users_ids").val(ids.join(':'));
129 var li = '<li id="user_'+borrowernumber+'">'+borrowername
130 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
131 + _("Delete user") + '</a>]</li>';
132 $("#users_names").append(li);
138 function del_user(borrowernumber) {
139 $("#user_"+borrowernumber).remove();
140 var ids = $("#users_ids").val().split(':');
141 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
142 $("#users_ids").val(ids.join(':'));
146 <style type="text/css">
147 .sortmsg {font-size: 80%;}
150 <body id="acq_basket" class="acq">
151 [% INCLUDE 'header.inc' %]
152 [% INCLUDE 'acquisitions-search.inc' %]
155 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a> › [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</div>
157 <div id="doc3" class="yui-t2">
161 [% IF (cannot_manage_basket) %]
163 <p class="error">You are not authorised to manage this basket.</p>
167 [% IF !confirm_close && !edi_confirm %]
168 [% UNLESS ( selectbasketg ) %]
169 [% UNLESS ( closedate ) %]
170 <div id="toolbar" class="btn-toolbar">
172 <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-small" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
174 <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="btn btn-small" id="basketheadbutton"><i class="fa fa-pencil"></i> Edit basket</a></div>
175 [%# FIXME This action should not be available for everyone %]
176 <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-small" data-toggle="modal" id="delbasketbutton"><i class="fa fa-remove"></i> Delete this basket</a></div>
177 [% IF ( unclosable ) %]
178 [% ELSIF ( uncertainprices ) %]
179 <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="btn btn-small" id="uncertpricesbutton">Uncertain prices</a></div>
181 <div class="btn-group">
182 <a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="closebutton"><i class="fa fa-times-circle"></i> Close this basket</a>
185 <div class="btn-group"><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="fa fa-download"></i> Export this basket as CSV</a></div>
187 <div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="ediorderbutton"><i class="icon-download"></i>Create edifact order</a></div>
190 <!-- Modal for confirm deletion box-->
191 <div class="modal hide" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true">
192 <div class="modal-header">
193 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
194 <h3>Confirm deletion</h3>
196 [% UNLESS book_foot_loop %]
197 <div class="modal-body">
198 <p>Are you sure you want to delete this basket?</p>
200 <div class="modal-footer">
201 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
202 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],0); return false;" >Delete basket</button>
205 <div class="modal-body">
206 <p>Are you sure you want to delete this basket?</p>
208 <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
209 <p>If items have been created when ordering or receiving, they will be deleted.</p>
210 <p>You can choose to delete bibliographic records if possible (bibliographic records that have other items or that are used in a subscription or another order will not be deleted).</p>
212 <div class="modal-footer">
213 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
214 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],0); return false;">Delete basket and orders</button>
215 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],1); return false;">Delete basket, orders and bibs</button>
221 [% UNLESS ( grouped ) %]
222 <div id="toolbar" class="btn-toolbar">
223 <div class="btn-group"><a href="#" class="btn btn-small" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen this basket</a></div>
224 <div class="btn-group"><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="fa fa-download"></i> Export this basket as CSV</a></div>
230 [% IF ( NO_BOOKSELLER ) %]
231 <h2>Vendor not found</h2>
233 [% IF ( delete_confirmed ) %]
234 <h3>Basket deleted</h3>
235 [% IF (cannotdelbiblios) %]
236 <div class="dialog alert">
237 <p><strong>Warning:</strong></p>
238 <p><strong>The following records could not be deleted:</strong></p>
240 [% FOREACH cannotdelbiblio IN cannotdelbiblios %]
241 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber %]">[% cannotdelbiblio.title |html %]</a> by [% cannotdelbiblio.author %]:
243 [% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount %] item(s) attached.</li>[% END %]
244 [% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions %] subscription(s) attached.</li>[% END %]
245 [% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio %] order(s) attached.</li>[% END %]
246 [% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %]
252 <a href="booksellers.pl">Click here to go back to booksellers page</a>
254 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
257 <h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a></h1>
258 [% IF ( basketno ) %]
259 <div id="acqui_basket_summary" class="yui-g">
261 <div class="yui-u first">
263 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
264 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
265 [% IF ( basketcontractno ) %]
266 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
268 [% IF ( deliveryplace ) %]<li><span class="label">Delivery place:</span> [% deliveryplace %]</li>[% END %]
269 [% IF ( billingplace ) %]<li><span class="label">Billing place:</span> [% billingplace %]</li>[% END %]
270 [% IF ( authorisedbyname ) %]<li><span class="label">Created by:</span> [% authorisedbyname %]</li>[% END %]
272 <form action="" method="post">
273 <span class="label">Managed by:</span>
274 <div style="float:left">
275 <ul id="users_names" style="padding-left:0">
276 [% FOREACH user IN users %]
277 <li id="user_[% user.borrowernumber %]">
278 [% user.firstname %] [% user.surname %]
279 [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
283 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
284 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids %]" />
285 <input type="hidden" id="op" name="op" value="mod_users" />
286 <input type="button" id="add_user" onclick="UserSearchPopup();" value="Add user" />
287 <input type="submit" value="Save changes" />
292 <span class="label">Library:</span>
293 [% IF basketbranchname %]
294 [% basketbranchname %]
298 [% IF branches_loop.size %]
299 <form action="" method="post">
300 <select id="branch" name="branch">
301 <option value="">(no library)</option>
302 [% FOREACH branch IN branches_loop %]
303 [% IF (branch.selected) %]
304 <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
306 <option value="[% branch.branchcode %]"> [% branch.branchname %]</option>
310 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
311 <input type="hidden" id="op" name="op" value="mod_branch" />
312 <input type="submit" value="Change" />
316 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
317 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
318 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
322 [% IF ( closedate ) %]
324 [% IF ( CAN_user_acquisition_group_manage ) %]
325 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
329 <span class="label">Basket group:</span>
330 [% IF basketgroup.id and not basketgroup.name %]
331 [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
333 [% IF basketgroup.closed %]
334 [% IF ( CAN_user_acquisition_group_manage ) %]
335 <a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="basketgroup">[% basketgroup.name %] (closed)</a>
337 [% basketgroup.name %] (closed)
339 [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
340 [%- IF basketgroup.id -%]
341 [% basketgroup.name %]
346 <select id="basketgroupid" name="basketgroupid">
347 <option value="">No group</option>
348 [% FOREACH bg IN basketgroups %]
349 [% IF ( bg.default ) %]
350 <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
352 [% UNLESS bg.closed %]
353 <option value="[% bg.id %]">[% bg.name %]</option>
355 <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
359 <option value="new">Add new group</option>
361 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
362 <input type="hidden" value="mod_basket" name="op" />
363 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
364 <input type="submit" value="Change basket group" />
367 [% IF ( basketgroup.deliveryplacename ) %]<li><span class="label">Basket group delivery placename:</span> [% basketgroup.deliveryplacename %]</li>[% END %]
368 [% IF ( basketgroup.billingplacename ) %]<li><span class="label">Basket group billing place:</span> [% basketgroup.billingplacename %]</li>[% END %]
370 [% IF ( CAN_user_acquisition_group_manage ) %]
378 [% IF ( duplinbatch ) %]<div class="dialog alert">
379 <h4>Duplicate warning</h4>
380 <p>Some records have not been automatically added because they match an existing record in your catalog:<a href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% duplinbatch %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]" title="Open in new window" target="_blank" class="popup" style="margin-left:10px">Display them</a></p>
383 <div id="acqui_basket_content" class="yui-g">
384 [% IF ( books_loop ) %]
386 <label for="show_all_details">
387 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
395 <th class="gste">RRP tax exc.</th>
396 <th class="gste">ecost tax exc.</th>
397 <th class="gsti">RRP tax inc.</th>
398 <th class="gsti">ecost tax inc.</th>
400 <th class="gste">Total tax exc. ([% currency %])</th>
401 <th class="gsti">Total tax inc. ([% currency %])</th>
405 <th>Supplier report</th>
407 [% UNLESS ( closedate ) %]
415 [% FOREACH foot_loo IN book_foot_loop %]
418 <th>Total (GST [% foot_loo.gstrate * 100 | $Price %])</th>
419 <th class="gste"> </th>
420 <th class="gste"> </th>
421 <th class="gsti"> </th>
422 <th class="gsti"> </th>
423 <th>[% foot_loo.quantity %]</th>
424 <th class="gste">[% foot_loo.totalgste | $Price%]</th>
425 <th class="gsti">[% foot_loo.totalgsti | $Price %]</th>
427 <th>[% foot_loo.gstvalue | $Price %]</th>
431 [% UNLESS ( closedate ) %]
440 <th>Total ([% currency %])</th>
441 <th class="gste"> </th>
442 <th class="gste"> </th>
443 <th class="gsti"> </th>
444 <th class="gsti"> </th>
445 <th>[% total_quantity %]</th>
446 <th class="gste">[% total_gste | $Price %]</th>
447 <th class="gsti">[% total_gsti | $Price %]</th>
449 <th>[% total_gstvalue | $Price %]</th>
453 [% UNLESS ( closedate ) %]
461 [% FOREACH books_loo IN books_loop %]
462 [% IF ( books_loo.order_received ) %]
463 <tr class="disabled">
468 [% books_loo.ordernumber %]
472 [% IF ( books_loo.order_received ) %] (rcvd)[% END %]
473 [% IF books_loo.title %]
474 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a>[% IF books_loo.author %] by [% books_loo.author %][% END %]
476 <em>Deleted bibliographic record, can't find title</em><br />
479 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
480 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
481 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
482 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
483 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
484 [% IF ( books_loo.suggestionid ) %]
486 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
487 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
490 [% IF ( books_loo.order_internalnote ) %]
491 <p class="ordernote"><strong>Internal note: </strong>[% books_loo.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Change internal note</a>]</p>
493 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Add internal note</a>]
495 [% IF ( books_loo.order_vendornote ) %]
496 <p class="ordernote"><strong>Vendor note: </strong>[% books_loo.order_vendornote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Change vendor note</a>]</p>
498 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Add vendor note</a>]
500 [% IF (books_loo.transferred_from) %]
501 [% basket = books_loo.transferred_from.basket %]
502 [% bookseller = books_loo.transferred_from.bookseller %]
503 [% timestamp = books_loo.transferred_from.timestamp %]
504 <p>Transferred from basket:
505 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
506 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
507 on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
508 [% timestamp | $KohaDates %]
513 [% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %]
514 [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
515 <td class="number gste [% IF books_loo.rrpgste.search(zero_regex) %]error[% END %]">[% books_loo.rrpgste | $Price %]</td>
516 <td class="number gste [% IF books_loo.ecostgste.search(zero_regex) %]error[% END %]">[% books_loo.ecostgste | $Price%]</td>
517 <td class="number gsti [% IF books_loo.rrpgsti.search(zero_regex) %]error[% END %]">[% books_loo.rrpgsti | $Price %]</td>
518 <td class="number gsti [% IF books_loo.ecostgsti.search(zero_regex) %]error[% END %]">[% books_loo.ecostgsti | $Price %]</td>
519 <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity %]</td>
520 <td class="number gste [% IF books_loo.totalgste.search(zero_regex) %]error[% END %]">[% books_loo.totalgste | $Price %]</td>
521 <td class="number gsti [% IF books_loo.totalgsti.search(zero_regex) %]error[% END %]">[% books_loo.totalgsti | $Price %]</td>
522 <td class="number">[% books_loo.gstrate * 100 | $Price %]</td>
523 <td class="number [% IF books_loo.gstvalue.search(zero_regex) %]error[% END %]">[% books_loo.gstvalue | $Price %]</td>
524 <td>[% books_loo.budget_name %]</td>
525 <td>[% books_loo.suppliers_report %]</td>
527 [% UNLESS ( closedate ) %]
529 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
530 [% UNLESS (books_loo.order_received) %]
532 <a href="#" onclick="transfer_order_popup([% books_loo.ordernumber %]); return false;">Transfer</a>
536 [% IF ( books_loo.left_holds_on_order ) %]
537 <span class="button" title="Can't delete order, ([% books_loo.holds_on_order %]) holds are linked with this order cancel holds first">Can't delete order</span><br>
539 <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber %]&biblionumber=[% books_loo.biblionumber %]&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno %]" class="button">Delete order</a><br>
541 [% IF ( books_loo.can_del_bib ) %]
542 <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber %]&biblionumber=[% books_loo.biblionumber %]&del_biblio=1&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno %]" class="button">Delete order and catalog record</a><br>
544 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
546 [% IF ( books_loo.left_item ) %]
547 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
549 [% IF ( books_loo.left_biblio ) %]
550 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
552 [% IF ( books_loo.left_subscription ) %]
553 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
555 [% IF ( books_loo.left_holds ) %]
556 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
566 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
569 [% IF (cancelledorders_loop) %]
570 <div id="cancelledorders">
571 <h2>Cancelled orders</h2>
572 <table id="cancelledorderst">
577 <th class="gste">RRP tax exc.</th>
578 <th class="gste">ecost tax exc.</th>
579 <th class="gsti">RRP tax inc.</th>
580 <th class="gsti">ecost tax inc.</th>
582 <th class="gste">Total tax exc. ([% currency %])</th>
583 <th class="gsti">Total tax inc. ([% currency %])</th>
590 [% FOREACH order IN cancelledorders_loop %]
591 <tr style="color:grey">
593 [% order.ordernumber %]
597 [% IF ( order.order_received ) %] (rcvd)[% END %]
598 [% IF (order.title) %]
599 [% order.title |html %][% IF order.author %] by [% order.author %][% END %]
601 <em>Deleted bibliographic record, can't find title</em>
604 [% IF ( order.order_internalnote ) %] [% order.order_internalnote %][% END %]
605 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
606 [% IF ( order.issn ) %] - [% order.issn %][% END %]
607 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
608 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
609 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
610 [% IF ( order.cancellationreason ) %]
612 Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) %]
615 [% IF order.transferred_to %]
616 [% basket = order.transferred_to.basket %]
617 [% bookseller = order.transferred_to.bookseller %]
618 [% timestamp = order.transferred_to.timestamp %]
619 <p>Transferred to basket:
620 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
621 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
622 on <span title="[% timestamp | $KohaDates with_hours = 1%]">
623 [% timestamp | $KohaDates %]
628 <td class="number gste">[% order.rrpgste | $Price %]</td>
629 <td class="number gste">[% order.ecostgste | $Price %]</td>
630 <td class="number gsti">[% order.rrpgsti | $Price %]</td>
631 <td class="number gsti">[% order.ecostgsti | $Price %]</td>
632 <td class="number">[% order.quantity %]</td>
633 <td class="number gste">[% order.totalgste | $Price %]</td>
634 <td class="number gsti">[% order.totalgsti | $Price %]</td>
635 <td class="number">[% order.gstrate * 100 | $Price %]</td>
636 <td class="number">[% order.gstvalue | $Price %]</td>
637 <td>[% order.budget_name %]
645 [% UNLESS ( closedate ) %]
648 <div id="addtoBasket" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true">
649 <div class="modal-body"></div>
650 <div class="modal-footer">
651 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
656 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
661 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
663 [% IF ( confirm_close ) %]
664 <div id="closebasket_needsconfirmation" class="dialog alert">
666 <form action="/cgi-bin/koha/acqui/basket.pl">
667 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
668 [% IF ( CAN_user_acquisition_group_manage ) %]
670 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
671 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
674 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
675 <input type="hidden" value="close" name="op" />
676 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
677 <input type="hidden" name="confirm" value="1" />
678 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
679 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
681 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
682 <input type="hidden" name="basketno" value="[% basketno %]" />
683 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
688 <div id="closebasket_needsconfirmation" class="dialog alert">
690 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
691 <h1>Are you sure you want to generate an edifact order and close basket [% basketname|html %]?</h1>
692 [% IF CAN_user_acquisition_group_manage %]
694 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
695 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
698 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
699 <input type="hidden" value="ediorder" name="op" />
700 <input type="hidden" name="ean" value="[% ean %]" />
701 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
702 <input type="hidden" name="confirm" value="1" />
703 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
704 <input type="submit" class="approve" value="Yes, close (Y)" accesskey="y" />
705 <input type="submit" class="deny" value="No, don't close (N)" accesskey="n" onclick="javascript:window.location='/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]';return false;" />
710 [% END %][%# IF (cannot_manage_basket) %]
713 [% INCLUDE 'acquisitions-menu.inc' %]
716 [% INCLUDE 'intranet-bottom.inc' %]