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');
57 <script type="text/javascript">
59 $(document).ready(function(){
60 $("#basketgroupid").change(function(){
61 if($(this).val() == "new"){
62 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
68 [% UNLESS ( grouped ) %]
69 <script type="text/javascript">
71 function confirm_reopen() {
72 var skip = [% IF ( skip_confirm_reopen ) %] 1 [% ELSE %] 0 [% END %];
73 var is_confirmed = skip || confirm(_("Are you sure you want to reopen this basket?"));
75 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
82 <script type="text/javascript">
84 $(document).ready(function() {
85 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
86 "sPaginationType": "four_button",
88 [% UNLESS ( closedate ) %]
90 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
95 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
96 "sPaginationType": "four_button"
98 $("#reopenbutton").on("click",function(e){
104 function UserSearchPopup(f) {
106 "/cgi-bin/koha/acqui/add_user_search.pl",
108 'width=740, height=450, scrollbars=yes, toolbar=no,'
112 function add_user(borrowernumber, borrowername) {
113 var ids = $("#users_ids").val();
115 ids = ids.split(':');
119 if (ids.indexOf(borrowernumber) < 0) {
120 ids.push(borrowernumber);
121 $("#users_ids").val(ids.join(':'));
122 var li = '<li id="user_'+borrowernumber+'">'+borrowername
123 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
124 + _("Delete user") + '</a>]</li>';
125 $("#users_names").append(li);
131 function del_user(borrowernumber) {
132 $("#user_"+borrowernumber).remove();
133 var ids = $("#users_ids").val().split(':');
134 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
135 $("#users_ids").val(ids.join(':'));
139 <style type="text/css">
140 .sortmsg {font-size: 80%;}
143 <body id="acq_basket" class="acq">
144 [% INCLUDE 'header.inc' %]
145 [% INCLUDE 'acquisitions-search.inc' %]
148 <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>
150 <div id="doc3" class="yui-t2">
154 [% IF (cannot_manage_basket) %]
156 <p class="error">You are not authorised to manage this basket.</p>
160 [% UNLESS ( confirm_close ) %]
161 [% UNLESS ( selectbasketg ) %]
162 [% UNLESS ( closedate ) %]
163 <div id="toolbar" class="btn-toolbar">
165 <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>
167 <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>
168 [%# FIXME This action should not be available for everyone %]
169 <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>
170 [% IF ( unclosable ) %]
171 [% ELSIF ( uncertainprices ) %]
172 <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>
174 <div class="btn-group">
175 <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>
178 <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>
180 <!-- Modal for confirm deletion box-->
181 <div class="modal hide" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true">
182 <div class="modal-header">
183 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
184 <h3>Confirm deletion</h3>
186 [% UNLESS book_foot_loop %]
187 <div class="modal-body">
188 <p>Are you sure you want to delete this basket?</p>
190 <div class="modal-footer">
191 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
192 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],0); return false;" >Delete basket</button>
195 <div class="modal-body">
196 <p>Are you sure you want to delete this basket?</p>
198 <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
199 <p>If items have been created when ordering or receiving, they will be deleted.</p>
200 <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>
202 <div class="modal-footer">
203 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
204 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],0); return false;">Delete basket and orders</button>
205 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],1); return false;">Delete basket, orders and bibs</button>
211 [% UNLESS ( grouped ) %]
212 <div id="toolbar" class="btn-toolbar">
213 <div class="btn-group"><a href="#" class="btn btn-small" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen this basket</a></div>
214 <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>
220 [% IF ( NO_BOOKSELLER ) %]
221 <h2>Vendor not found</h2>
223 [% IF ( delete_confirmed ) %]
224 <h3>Basket deleted</h3>
225 [% IF (cannotdelbiblios) %]
226 <div class="dialog alert">
227 <p><strong>Warning:</strong></p>
228 <p><strong>The following records could not be deleted:</strong></p>
230 [% FOREACH cannotdelbiblio IN cannotdelbiblios %]
231 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber %]">[% cannotdelbiblio.title |html %]</a> by [% cannotdelbiblio.author %]:
233 [% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount %] item(s) attached.</li>[% END %]
234 [% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions %] subscription(s) attached.</li>[% END %]
235 [% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio %] order(s) attached.</li>[% END %]
236 [% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %]
242 <a href="booksellers.pl">Click here to go back to booksellers page</a>
244 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
247 <h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a></h1>
248 [% IF ( basketno ) %]
249 <div id="acqui_basket_summary" class="yui-g">
251 <div class="yui-u first">
253 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
254 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
255 [% IF ( basketcontractno ) %]
256 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
258 [% IF ( deliveryplace ) %]<li><span class="label">Delivery place:</span> [% deliveryplace %]</li>[% END %]
259 [% IF ( billingplace ) %]<li><span class="label">Billing place:</span> [% billingplace %]</li>[% END %]
260 [% IF ( authorisedbyname ) %]<li><span class="label">Created by:</span> [% authorisedbyname %]</li>[% END %]
262 <form action="" method="post">
263 <span class="label">Managed by:</span>
264 <div style="float:left">
265 <ul id="users_names" style="padding-left:0">
266 [% FOREACH user IN users %]
267 <li id="user_[% user.borrowernumber %]">
268 [% user.firstname %] [% user.surname %]
269 [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
273 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
274 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids %]" />
275 <input type="hidden" id="op" name="op" value="mod_users" />
276 <input type="button" id="add_user" onclick="UserSearchPopup();" value="Add user" />
277 <input type="submit" value="Save changes" />
282 <span class="label">Library:</span>
283 [% IF basketbranchname %]
284 [% basketbranchname %]
288 [% IF branches_loop.size %]
289 <form action="" method="post">
290 <select id="branch" name="branch">
291 <option value="">(no library)</option>
292 [% FOREACH branch IN branches_loop %]
293 [% IF (branch.selected) %]
294 <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
296 <option value="[% branch.branchcode %]"> [% branch.branchname %]</option>
300 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
301 <input type="hidden" id="op" name="op" value="mod_branch" />
302 <input type="submit" value="Change" />
306 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
307 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
308 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
312 [% IF ( closedate ) %]
314 [% IF ( CAN_user_acquisition_group_manage ) %]
315 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
319 <span class="label">Basket group:</span>
320 [% IF basketgroup.id and not basketgroup.name %]
321 [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
323 [% IF basketgroup.closed %]
324 [% IF ( CAN_user_acquisition_group_manage ) %]
325 <a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="basketgroup">[% basketgroup.name %] (closed)</a>
327 [% basketgroup.name %] (closed)
329 [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
330 [%- IF basketgroup.id -%]
331 [% basketgroup.name %]
336 <select id="basketgroupid" name="basketgroupid">
337 <option value="">No group</option>
338 [% FOREACH bg IN basketgroups %]
339 [% IF ( bg.default ) %]
340 <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
342 [% UNLESS bg.closed %]
343 <option value="[% bg.id %]">[% bg.name %]</option>
345 <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
349 <option value="new">Add new group</option>
351 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
352 <input type="hidden" value="mod_basket" name="op" />
353 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
354 <input type="submit" value="Change basket group" />
357 [% IF ( basketgroup.deliveryplacename ) %]<li><span class="label">Basket group delivery placename:</span> [% basketgroup.deliveryplacename %]</li>[% END %]
358 [% IF ( basketgroup.billingplacename ) %]<li><span class="label">Basket group billing place:</span> [% basketgroup.billingplacename %]</li>[% END %]
360 [% IF ( CAN_user_acquisition_group_manage ) %]
368 [% IF ( duplinbatch ) %]<div class="dialog alert">
369 <h4>Duplicate warning</h4>
370 <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>
373 <div id="acqui_basket_content" class="yui-g">
374 [% IF ( books_loop ) %]
376 <label for="show_all_details">
377 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
385 <th class="gste">RRP tax exc.</th>
386 <th class="gste">ecost tax exc.</th>
387 <th class="gsti">RRP tax inc.</th>
388 <th class="gsti">ecost tax inc.</th>
390 <th class="gste">Total tax exc. ([% currency %])</th>
391 <th class="gsti">Total tax inc. ([% currency %])</th>
396 [% UNLESS ( closedate ) %]
404 [% FOREACH foot_loo IN book_foot_loop %]
407 <th>Total (GST [% foot_loo.gstrate * 100 | $Price %])</th>
408 <th class="gste"> </th>
409 <th class="gste"> </th>
410 <th class="gsti"> </th>
411 <th class="gsti"> </th>
412 <th>[% foot_loo.quantity %]</th>
413 <th class="gste">[% foot_loo.totalgste | $Price%]</th>
414 <th class="gsti">[% foot_loo.totalgsti | $Price %]</th>
416 <th>[% foot_loo.gstvalue | $Price %]</th>
419 [% UNLESS ( closedate ) %]
428 <th>Total ([% currency %])</th>
429 <th class="gste"> </th>
430 <th class="gste"> </th>
431 <th class="gsti"> </th>
432 <th class="gsti"> </th>
433 <th>[% total_quantity %]</th>
434 <th class="gste">[% total_gste | $Price %]</th>
435 <th class="gsti">[% total_gsti | $Price %]</th>
437 <th>[% total_gstvalue | $Price %]</th>
440 [% UNLESS ( closedate ) %]
448 [% FOREACH books_loo IN books_loop %]
449 [% IF ( books_loo.order_received ) %]
450 <tr class="disabled">
455 [% books_loo.ordernumber %]
459 [% IF ( books_loo.order_received ) %] (rcvd)[% END %]
460 [% IF books_loo.title %]
461 <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 %]
463 <em>Deleted bibliographic record, can't find title</em><br />
466 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
467 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
468 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
469 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
470 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
471 [% IF ( books_loo.suggestionid ) %]
473 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
474 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
477 [% IF ( books_loo.order_internalnote ) %]
478 <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>
480 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Add internal note</a>]
482 [% IF ( books_loo.order_vendornote ) %]
483 <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>
485 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Add vendor note</a>]
487 [% IF (books_loo.transferred_from) %]
488 [% basket = books_loo.transferred_from.basket %]
489 [% bookseller = books_loo.transferred_from.bookseller %]
490 [% timestamp = books_loo.transferred_from.timestamp %]
491 <p>Transferred from basket:
492 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
493 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
494 on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
495 [% timestamp | $KohaDates %]
500 [% 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 ... %]
501 [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
502 <td class="number gste [% IF books_loo.rrpgste.search(zero_regex) %]error[% END %]">[% books_loo.rrpgste | $Price %]</td>
503 <td class="number gste [% IF books_loo.ecostgste.search(zero_regex) %]error[% END %]">[% books_loo.ecostgste | $Price%]</td>
504 <td class="number gsti [% IF books_loo.rrpgsti.search(zero_regex) %]error[% END %]">[% books_loo.rrpgsti | $Price %]</td>
505 <td class="number gsti [% IF books_loo.ecostgsti.search(zero_regex) %]error[% END %]">[% books_loo.ecostgsti | $Price %]</td>
506 <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity %]</td>
507 <td class="number gste [% IF books_loo.totalgste.search(zero_regex) %]error[% END %]">[% books_loo.totalgste | $Price %]</td>
508 <td class="number gsti [% IF books_loo.totalgsti.search(zero_regex) %]error[% END %]">[% books_loo.totalgsti | $Price %]</td>
509 <td class="number">[% books_loo.gstrate * 100 | $Price %]</td>
510 <td class="number [% IF books_loo.gstvalue.search(zero_regex) %]error[% END %]">[% books_loo.gstvalue | $Price %]</td>
511 <td>[% books_loo.budget_name %]</td>
513 [% UNLESS ( closedate ) %]
515 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
516 [% UNLESS (books_loo.order_received) %]
518 <a href="#" onclick="transfer_order_popup([% books_loo.ordernumber %]); return false;">Transfer</a>
522 [% IF ( books_loo.left_holds_on_order ) %]
523 <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>
525 <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>
527 [% IF ( books_loo.can_del_bib ) %]
528 <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>
530 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
532 [% IF ( books_loo.left_item ) %]
533 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
535 [% IF ( books_loo.left_biblio ) %]
536 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
538 [% IF ( books_loo.left_subscription ) %]
539 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
541 [% IF ( books_loo.left_holds ) %]
542 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
552 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
555 [% IF (cancelledorders_loop) %]
556 <div id="cancelledorders">
557 <h2>Cancelled orders</h2>
558 <table id="cancelledorderst">
563 <th class="gste">RRP tax exc.</th>
564 <th class="gste">ecost tax exc.</th>
565 <th class="gsti">RRP tax inc.</th>
566 <th class="gsti">ecost tax inc.</th>
568 <th class="gste">Total tax exc. ([% currency %])</th>
569 <th class="gsti">Total tax inc. ([% currency %])</th>
576 [% FOREACH order IN cancelledorders_loop %]
577 <tr style="color:grey">
579 [% order.ordernumber %]
583 [% IF ( order.order_received ) %] (rcvd)[% END %]
584 [% IF (order.title) %]
585 [% order.title |html %][% IF order.author %] by [% order.author %][% END %]
587 <em>Deleted bibliographic record, can't find title</em>
590 [% IF ( order.order_internalnote ) %] [% order.order_internalnote %][% END %]
591 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
592 [% IF ( order.issn ) %] - [% order.issn %][% END %]
593 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
594 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
595 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
596 [% IF ( order.cancellationreason ) %]
598 Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) %]
601 [% IF order.transferred_to %]
602 [% basket = order.transferred_to.basket %]
603 [% bookseller = order.transferred_to.bookseller %]
604 [% timestamp = order.transferred_to.timestamp %]
605 <p>Transferred to basket:
606 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
607 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
608 on <span title="[% timestamp | $KohaDates with_hours = 1%]">
609 [% timestamp | $KohaDates %]
614 <td class="number gste">[% order.rrpgste | $Price %]</td>
615 <td class="number gste">[% order.ecostgste | $Price %]</td>
616 <td class="number gsti">[% order.rrpgsti | $Price %]</td>
617 <td class="number gsti">[% order.ecostgsti | $Price %]</td>
618 <td class="number">[% order.quantity %]</td>
619 <td class="number gste">[% order.totalgste | $Price %]</td>
620 <td class="number gsti">[% order.totalgsti | $Price %]</td>
621 <td class="number">[% order.gstrate * 100 | $Price %]</td>
622 <td class="number">[% order.gstvalue | $Price %]</td>
623 <td>[% order.budget_name %]
631 [% UNLESS ( closedate ) %]
634 <div id="addtoBasket" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true">
635 <div class="modal-body"></div>
636 <div class="modal-footer">
637 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
642 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
647 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
649 [% IF ( confirm_close ) %]
650 <div id="closebasket_needsconfirmation" class="dialog alert">
652 <form action="/cgi-bin/koha/acqui/basket.pl">
653 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
654 [% IF ( CAN_user_acquisition_group_manage ) %]
656 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
657 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
660 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
661 <input type="hidden" value="close" name="op" />
662 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
663 <input type="hidden" name="confirm" value="1" />
664 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
665 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
667 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
668 <input type="hidden" name="basketno" value="[% basketno %]" />
669 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
674 [% END %][%# IF (cannot_manage_basket) %]
677 [% INCLUDE 'acquisitions-menu.inc' %]
680 [% INCLUDE 'intranet-bottom.inc' %]