4 [% USE AuthorisedValues %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
12 <script type="text/javascript">
14 function updateColumnsVisibility(visible) {
16 $("table .gste, .gsti").show();
18 [% IF ( listincgst ) %]
19 $("table .gste").hide();
21 $("table .gsti").hide();
26 $(document).ready(function() {
27 $('#toolbar').fixFloat();
28 $("#show_all_details").click(function(){
29 updateColumnsVisibility($(this).is(":checked"));
32 $("#show_all_details").prop('checked', false);
33 updateColumnsVisibility(false);
34 [% UNLESS ( closedate ) %]
35 $('#addtoBasket').on('show', function () {
36 $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML);
40 $("body").on("click", ".del_user", function(e){
42 del_user( $(this).data("borrowernumber") );
45 $("#add_user").on("click",function(e){
50 $(".transfer_order").on("click",function(e){
52 transfer_order_popup( $(this).data("ordernumber"));
58 [% UNLESS ( closedate ) %]
59 <script type="text/javascript">
62 function transfer_order_popup(ordernumber) {
63 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
64 + "ordernumber=" + ordernumber
65 window.open(url, 'TransferOrder','width=600,height=400,toolbar=false,scrollbars=yes');
68 function confirm_ediorder() {
69 var is_confirmed = confirm(_("Are you sure you want to close this basket and generate an EDIFACT order?"));
71 window.location = "/cgi-bin/koha/acqui/basket.pl?op=edi_confirm&basketno=[% basketno %]";
78 <script type="text/javascript">
80 $(document).ready(function(){
81 $("#basketgroupid").change(function(){
82 if($(this).val() == "new"){
83 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
89 [% UNLESS ( grouped ) %]
90 <script type="text/javascript">
92 function confirm_reopen() {
93 var skip = [% IF ( skip_confirm_reopen ) %] 1 [% ELSE %] 0 [% END %];
94 var is_confirmed = skip || confirm(_("Are you sure you want to reopen this basket?"));
96 window.location = "/cgi-bin/koha/acqui/basket.pl?op=reopen&basketno=[% basketno %]";
103 <script type="text/javascript">
105 $(document).ready(function() {
106 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
107 "sPaginationType": "four_button",
110 [% UNLESS ( closedate ) %]
111 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
113 { "sType": "anti-the", "aTargets": [ "anti-the" ] }
117 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
118 "sPaginationType": "four_button"
120 $("#reopenbutton").on("click",function(e){
126 function UserSearchPopup(f) {
128 "/cgi-bin/koha/acqui/add_user_search.pl",
130 'width=840, height=500, scrollbars=yes, toolbar=no,'
134 function add_user(borrowernumber, borrowername) {
135 var ids = $("#users_ids").val();
137 ids = ids.split(':');
141 if (ids.indexOf(borrowernumber) < 0) {
142 ids.push(borrowernumber);
143 $("#users_ids").val(ids.join(':'));
144 var li = '<li id="user_'+borrowernumber+'">'+borrowername
145 + ' <a href="#" data-borrowernumber="'+borrowernumber+'" class="del_user"><i class="fa fa-trash"></i> '
146 + _("Delete user") + '</a></li>';
147 $("#users_names").append(li);
153 function del_user(borrowernumber) {
154 $("#user_"+borrowernumber).remove();
155 var ids = $("#users_ids").val().split(':');
156 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
157 $("#users_ids").val(ids.join(':'));
161 <style type="text/css">
162 .sortmsg {font-size: 80%;}
165 <body id="acq_basket" class="acq">
166 [% INCLUDE 'header.inc' %]
167 [% INCLUDE 'acquisitions-search.inc' %]
170 <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>
172 <div id="doc3" class="yui-t2">
176 [% IF (cannot_manage_basket) %]
178 <p class="error">You are not authorised to manage this basket.</p>
182 [% IF !confirm_close && !edi_confirm %]
183 [% UNLESS ( selectbasketg ) %]
184 [% UNLESS ( closedate ) %]
185 <div id="toolbar" class="btn-toolbar">
187 <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>
189 <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>
190 [%# FIXME This action should not be available for everyone %]
191 <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-small" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> Delete this basket</a></div>
192 [% IF ( unclosable ) %]
193 [% ELSIF ( uncertainprices ) %]
194 <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>
196 <div class="btn-group">
197 <a href="/cgi-bin/koha/acqui/basket.pl?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="closebutton"><i class="fa fa-times-circle"></i> Close this basket</a>
200 <div class="btn-group"><a href="/cgi-bin/koha/acqui/basket.pl?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>
202 <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="fa fa-download"></i> Create EDIFACT order</a></div>
205 <!-- Modal for confirm deletion box-->
206 <div class="modal hide" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true">
207 <div class="modal-header">
208 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
209 <h3>Confirm deletion</h3>
211 [% UNLESS book_foot_loop %]
212 <div class="modal-body">
213 <p>Are you sure you want to delete this basket?</p>
215 <div class="modal-footer">
216 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
217 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
218 <input type="hidden" name="op" value="delete_confirm" />
219 <input type="hidden" name="basketno" value="[% basketno %]" />
220 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
221 <input type="hidden" name="delbiblio" value="0" />
222 <button type="submit" class="btn btn-default">Delete basket</button>
226 <div class="modal-body">
227 <p>Are you sure you want to delete this basket?</p>
229 <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
230 <p>If items have been created when ordering or receiving, they will be deleted.</p>
231 <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>
233 <div class="modal-footer">
234 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
235 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
236 <input type="hidden" name="op" value="delete_confirm" />
237 <input type="hidden" name="basketno" value="[% basketno %]" />
238 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
239 <input type="hidden" name="delbiblio" value="0" />
240 <button type="submit" class="btn btn-default">Delete basket and orders</button>
243 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
244 <input type="hidden" name="op" value="delete_confirm" />
245 <input type="hidden" name="basketno" value="[% basketno %]" />
246 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
247 <input type="hidden" name="delbiblio" value="1" />
248 <button type="submit" class="btn btn-default">Delete basket, orders, and records</button>
256 [% UNLESS ( grouped ) %]
257 <div id="toolbar" class="btn-toolbar">
258 <div class="btn-group"><a href="#" class="btn btn-small" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen this basket</a></div>
259 <div class="btn-group"><a href="/cgi-bin/koha/acqui/basket.pl?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>
265 [% IF ( NO_BOOKSELLER ) %]
266 <h2>Vendor not found</h2>
268 [% IF ( delete_confirmed ) %]
269 <div class="dialog message">
270 <h3>Basket deleted</h3>
272 [% IF (cannotdelbiblios) %]
273 <div class="dialog alert">
274 <p><strong>Warning:</strong></p>
275 <p><strong>The following records could not be deleted:</strong></p>
277 [% FOREACH cannotdelbiblio IN cannotdelbiblios %]
278 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber %]">[% cannotdelbiblio.title |html %]</a> by [% cannotdelbiblio.author %]:
280 [% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount %] item(s) attached.</li>[% END %]
281 [% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions %] subscription(s) attached.</li>[% END %]
282 [% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio %] order(s) attached.</li>[% END %]
283 [% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %]
289 <a href="booksellers.pl">Click here to go back to booksellers page</a>
291 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
294 <h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a></h1>
295 [% IF ( basketno ) %]
296 <div id="acqui_basket_summary" class="yui-g">
298 <div class="yui-u first">
300 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
301 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
302 [% IF ( basketcontractno ) %]
303 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
305 [% IF deliveryplace %]<li><span class="label">Delivery place:</span> [% Branches.GetName( deliveryplace ) %]</li>[% END %]
306 [% IF billingplace %]<li><span class="label">Billing place:</span> [% Branches.GetName( billingplace ) %]</li>[% END %]
307 [% IF ( authorisedbyname ) %]<li><span class="label">Created by:</span> [% authorisedbyname %]</li>[% END %]
309 <form action="" method="post">
310 <span class="label">Managed by:</span>
311 <div style="float:left">
312 <ul id="users_names" style="padding-left:0">
313 [% FOREACH user IN users %]
314 <li id="user_[% user.borrowernumber %]">
315 [% user.firstname %] [% user.surname %]
316 <a href="#" data-borrowernumber="[% user.borrowernumber %]" class="del_user"><i class="fa fa-trash"></i> Delete user</a>
320 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
321 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids %]" />
322 <input type="hidden" id="op" name="op" value="mod_users" />
323 <input type="button" id="add_user" value="Add user" />
324 <input type="submit" value="Save changes" />
329 <span class="label">Library:</span>
330 [% IF basketbranchcode %]
331 [% Branches.GetName( basketbranchcode ) %]
335 [% IF branches_loop.size %]
336 <form action="" method="post">
337 <select id="branch" name="branch">
338 <option value="">(no library)</option>
339 [% FOREACH branch IN branches_loop %]
340 [% IF (branch.selected) %]
341 <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
343 <option value="[% branch.branchcode %]"> [% branch.branchname %]</option>
347 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
348 <input type="hidden" id="op" name="op" value="mod_branch" />
349 <input type="submit" value="Change" />
353 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
354 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
355 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
356 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
357 <li><span class="label">Orders are standing:</span> [% IF is_standing %]Yes[% ELSE %]No[% END %]</li>
362 [% IF ( closedate ) %]
364 [% IF ( CAN_user_acquisition_group_manage ) %]
365 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
369 <span class="label">Basket group:</span>
370 [% IF basketgroup.id and not basketgroup.name %]
371 [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
373 [% IF basketgroup.closed %]
374 [% IF ( CAN_user_acquisition_group_manage ) %]
375 <a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="basketgroup">[% basketgroup.name %] (closed)</a>
377 [% basketgroup.name %] (closed)
379 [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
380 [%- IF basketgroup.id -%]
381 [% basketgroup.name %]
386 <select id="basketgroupid" name="basketgroupid">
387 <option value="">No group</option>
388 [% FOREACH bg IN basketgroups %]
389 [% IF ( bg.default ) %]
390 <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
392 [% UNLESS bg.closed %]
393 <option value="[% bg.id %]">[% bg.name %]</option>
395 <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
399 <option value="new">Add new group</option>
401 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
402 <input type="hidden" value="mod_basket" name="op" />
403 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
404 <input type="submit" value="Change basket group" />
407 [% IF basketgroup.deliveryplace %]<li><span class="label">Basket group delivery placename:</span> [% Branches.GetName( basketgroup.deliveryplace ) %]</li>[% END %]
408 [% IF basketgroup.billingplace %]<li><span class="label">Basket group billing place:</span> [% Branches.GetName( basketgroup.billingplace ) %]</li>[% END %]
410 [% IF ( CAN_user_acquisition_group_manage ) %]
418 [% IF ( duplinbatch ) %]<div class="dialog alert">
419 <h4>Duplicate warning</h4>
420 <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>
423 <div id="acqui_basket_content" class="yui-g">
424 [% IF ( books_loop ) %]
426 <label for="show_all_details">
427 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
434 <th class="anti-the">Order</th>
435 <th class="gste">RRP tax exc.</th>
436 <th class="gste">ecost tax exc.</th>
437 <th class="gsti">RRP tax inc.</th>
438 <th class="gsti">ecost tax inc.</th>
440 <th class="gste">Total tax exc. ([% currency %])</th>
441 <th class="gsti">Total tax inc. ([% currency %])</th>
445 <th>Supplier report</th>
447 [% UNLESS ( closedate ) %]
449 <th>Cancel order</th>
455 [% FOREACH foot_loo IN book_foot_loop %]
458 <th>Total (GST [% foot_loo.gstrate * 100 | $Price %])</th>
459 <th class="gste"> </th>
460 <th class="gste"> </th>
461 <th class="gsti"> </th>
462 <th class="gsti"> </th>
463 <th>[% foot_loo.quantity %]</th>
464 <th class="gste">[% foot_loo.totalgste | $Price%]</th>
465 <th class="gsti">[% foot_loo.totalgsti | $Price %]</th>
467 <th>[% foot_loo.gstvalue | $Price %]</th>
471 [% UNLESS ( closedate ) %]
480 <th>Total ([% currency %])</th>
481 <th class="gste"> </th>
482 <th class="gste"> </th>
483 <th class="gsti"> </th>
484 <th class="gsti"> </th>
485 <th>[% total_quantity %]</th>
486 <th class="gste">[% total_gste | $Price %]</th>
487 <th class="gsti">[% total_gsti | $Price %]</th>
489 <th>[% total_gstvalue | $Price %]</th>
493 [% UNLESS ( closedate ) %]
501 [% FOREACH books_loo IN books_loop %]
502 [% IF ( books_loo.order_received ) %]
503 <tr class="disabled">
508 [% books_loo.ordernumber %]
512 [% IF ( books_loo.order_received ) %] (rcvd)[% END %]
513 [% IF books_loo.title %]
514 <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 %]
516 <em>Deleted bibliographic record, can't find title</em><br />
519 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
520 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
521 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
522 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
523 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
524 [% IF ( books_loo.suggestionid ) %]
526 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
527 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
530 [% IF ( books_loo.order_internalnote ) %]
531 <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>
533 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Add internal note</a>]
535 [% IF ( books_loo.order_vendornote ) %]
536 <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>
538 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Add vendor note</a>]
540 [% IF (books_loo.transferred_from) %]
541 [% basket = books_loo.transferred_from.basket %]
542 [% bookseller = books_loo.transferred_from.bookseller %]
543 [% timestamp = books_loo.transferred_from.timestamp %]
544 <p>Transferred from basket:
545 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
546 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
547 on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
548 [% timestamp | $KohaDates %]
553 [% 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 ... %]
554 [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
555 <td class="number gste [% IF books_loo.rrpgste.search(zero_regex) %]error[% END %]">[% books_loo.rrpgste | $Price %]</td>
556 <td class="number gste [% IF books_loo.ecostgste.search(zero_regex) %]error[% END %]">[% books_loo.ecostgste | $Price%]</td>
557 <td class="number gsti [% IF books_loo.rrpgsti.search(zero_regex) %]error[% END %]">[% books_loo.rrpgsti | $Price %]</td>
558 <td class="number gsti [% IF books_loo.ecostgsti.search(zero_regex) %]error[% END %]">[% books_loo.ecostgsti | $Price %]</td>
559 <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity %]</td>
560 <td class="number gste [% IF books_loo.totalgste.search(zero_regex) %]error[% END %]">[% books_loo.totalgste | $Price %]</td>
561 <td class="number gsti [% IF books_loo.totalgsti.search(zero_regex) %]error[% END %]">[% books_loo.totalgsti | $Price %]</td>
562 <td class="number">[% books_loo.gstrate * 100 | $Price %]</td>
563 <td class="number [% IF books_loo.gstvalue.search(zero_regex) %]error[% END %]">[% books_loo.gstvalue | $Price %]</td>
564 <td>[% books_loo.budget_name %]</td>
565 <td>[% books_loo.suppliers_report %]</td>
567 [% UNLESS ( closedate ) %]
569 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
570 [% UNLESS (books_loo.order_received) %]
572 <a href="#" class="transfer_order" data-ordernumber="[% books_loo.ordernumber %]">Transfer</a>
576 [% IF ( books_loo.left_holds_on_order ) %]
577 <span class="button" title="Can't cancel order, ([% books_loo.holds_on_order %]) holds are linked with this order cancel holds first">Can't cancel order</span><br>
579 <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">Cancel order</a><br>
581 [% IF ( books_loo.can_del_bib ) %]
582 <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">Cancel order and delete catalog record</a><br>
584 <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
586 [% IF ( books_loo.left_item ) %]
587 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
589 [% IF ( books_loo.left_biblio ) %]
590 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
592 [% IF ( books_loo.left_subscription ) %]
593 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
595 [% IF ( books_loo.left_holds ) %]
596 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
606 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
609 [% IF (cancelledorders_loop) %]
610 <div id="cancelledorders">
611 <h2>Cancelled orders</h2>
612 <table id="cancelledorderst">
617 <th class="gste">RRP tax exc.</th>
618 <th class="gste">ecost tax exc.</th>
619 <th class="gsti">RRP tax inc.</th>
620 <th class="gsti">ecost tax inc.</th>
622 <th class="gste">Total tax exc. ([% currency %])</th>
623 <th class="gsti">Total tax inc. ([% currency %])</th>
630 [% FOREACH order IN cancelledorders_loop %]
631 <tr style="color:grey">
633 [% order.ordernumber %]
637 [% IF ( order.order_received ) %] (rcvd)[% END %]
638 [% IF (order.title) %]
639 [% order.title |html %][% IF order.author %] by [% order.author %][% END %]
641 <em>Deleted bibliographic record, can't find title</em>
644 [% IF ( order.order_internalnote ) %] [% order.order_internalnote %][% END %]
645 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
646 [% IF ( order.issn ) %] - [% order.issn %][% END %]
647 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
648 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
649 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
650 [% IF ( order.cancellationreason ) %]
652 Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) %]
655 [% IF order.transferred_to %]
656 [% basket = order.transferred_to.basket %]
657 [% bookseller = order.transferred_to.bookseller %]
658 [% timestamp = order.transferred_to.timestamp %]
659 <p>Transferred to basket:
660 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
661 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
662 on <span title="[% timestamp | $KohaDates with_hours = 1%]">
663 [% timestamp | $KohaDates %]
668 <td class="number gste">[% order.rrpgste | $Price %]</td>
669 <td class="number gste">[% order.ecostgste | $Price %]</td>
670 <td class="number gsti">[% order.rrpgsti | $Price %]</td>
671 <td class="number gsti">[% order.ecostgsti | $Price %]</td>
672 <td class="number">[% order.quantity %]</td>
673 <td class="number gste">[% order.totalgste | $Price %]</td>
674 <td class="number gsti">[% order.totalgsti | $Price %]</td>
675 <td class="number">[% order.gstrate * 100 | $Price %]</td>
676 <td class="number">[% order.gstvalue | $Price %]</td>
677 <td>[% order.budget_name %]
685 [% UNLESS ( closedate ) %]
688 <div id="addtoBasket" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true">
689 <div class="modal-body">
691 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
694 <div class="modal-footer">
695 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
702 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
704 [% IF ( confirm_close ) %]
705 <div id="closebasket_needsconfirmation" class="dialog alert">
707 <form action="/cgi-bin/koha/acqui/basket.pl">
708 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
709 [% IF ( CAN_user_acquisition_group_manage ) %]
711 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
712 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
715 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
716 <input type="hidden" value="close" name="op" />
717 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
718 <input type="hidden" name="confirm" value="1" />
719 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
720 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
722 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
723 <input type="hidden" name="basketno" value="[% basketno %]" />
724 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
729 <div id="closebasket_needsconfirmation" class="dialog alert">
731 <form action="/cgi-bin/koha/acqui/basket.pl">
732 <h1>Are you sure you want to generate an EDIFACT order and close basket [% basketname|html %]?</h1>
733 [% IF CAN_user_acquisition_group_manage %]
735 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
736 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
739 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
740 <input type="hidden" value="ediorder" name="op" />
741 <input type="hidden" name="ean" value="[% ean %]" />
742 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
743 <input type="hidden" name="confirm" value="1" />
744 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
745 <button type="submit" class="approve" accesskey="Y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
747 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
748 <input type="hidden" name="basketno" value="[% basketno %]" />
749 <button type="submit" class="deny" accesskey="N"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
754 [% END %][%# IF (cannot_manage_basket) %]
757 [% INCLUDE 'acquisitions-menu.inc' %]
760 [% INCLUDE 'intranet-bottom.inc' %]