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" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
11 <script type="text/javascript">
13 function updateColumnsVisibility(visible) {
15 $("table .gste, .gsti").show();
17 [% IF ( listincgst ) %]
18 $("table .gste").hide();
20 $("table .gsti").hide();
25 $(document).ready(function() {
26 $('#toolbar').fixFloat();
27 $("#show_all_details").click(function(){
28 updateColumnsVisibility($(this).is(":checked"));
31 $("#show_all_details").attr('checked', false);
32 updateColumnsVisibility(false);
33 [% UNLESS ( closedate ) %]
34 $('#addtoBasket').on('show', function () {
35 $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML);
42 [% UNLESS ( closedate ) %]
43 <script type="text/javascript">
46 function delete_basket(basketno,booksellerid,delbiblio) {
47 window.location = "[% script_name %]?op=delete_confirm&delbiblio="+delbiblio+"&basketno="+basketno+"&booksellerid="+booksellerid;
50 function transfer_order_popup(ordernumber) {
51 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
52 + "ordernumber=" + ordernumber
53 window.open(url, 'TransferOrder','width=600,height=400,toolbar=false,scrollbars=yes');
56 function confirm_ediorder() {
57 var is_confirmed = confirm(_("Are you sure you want to close this basket and generate an Edifact order?"));
59 window.location = "[% script_name %]?op=edi_confirm&basketno=[% basketno %]";
66 <script type="text/javascript">
68 $(document).ready(function(){
69 $("#basketgroupid").change(function(){
70 if($(this).val() == "new"){
71 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
77 [% UNLESS ( grouped ) %]
78 <script type="text/javascript">
80 function confirm_reopen() {
81 var skip = [% IF ( skip_confirm_reopen ) %] 1 [% ELSE %] 0 [% END %];
82 var is_confirmed = skip || confirm(_("Are you sure you want to reopen this basket?"));
84 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
91 <script type="text/javascript">
93 $(document).ready(function() {
94 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
95 "sPaginationType": "four_button",
97 [% UNLESS ( closedate ) %]
99 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
104 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
105 "sPaginationType": "four_button"
107 $("#reopenbutton").on("click",function(e){
113 function UserSearchPopup(f) {
115 "/cgi-bin/koha/acqui/add_user_search.pl",
117 'width=740, height=450, scrollbars=yes, toolbar=no,'
121 function add_user(borrowernumber, borrowername) {
122 var ids = $("#users_ids").val();
124 ids = ids.split(':');
128 if (ids.indexOf(borrowernumber) < 0) {
129 ids.push(borrowernumber);
130 $("#users_ids").val(ids.join(':'));
131 var li = '<li id="user_'+borrowernumber+'">'+borrowername
132 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
133 + _("Delete user") + '</a>]</li>';
134 $("#users_names").append(li);
140 function del_user(borrowernumber) {
141 $("#user_"+borrowernumber).remove();
142 var ids = $("#users_ids").val().split(':');
143 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
144 $("#users_ids").val(ids.join(':'));
148 <style type="text/css">
149 .sortmsg {font-size: 80%;}
152 <body id="acq_basket" class="acq">
153 [% INCLUDE 'header.inc' %]
154 [% INCLUDE 'acquisitions-search.inc' %]
157 <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>
159 <div id="doc3" class="yui-t2">
163 [% IF (cannot_manage_basket) %]
165 <p class="error">You are not authorised to manage this basket.</p>
169 [% IF !confirm_close && !edi_confirm %]
170 [% UNLESS ( selectbasketg ) %]
171 [% UNLESS ( closedate ) %]
172 <div id="toolbar" class="btn-toolbar">
174 <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>
176 <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>
177 [%# FIXME This action should not be available for everyone %]
178 <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>
179 [% IF ( unclosable ) %]
180 [% ELSIF ( uncertainprices ) %]
181 <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>
183 <div class="btn-group">
184 <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>
187 <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>
189 <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>
192 <!-- Modal for confirm deletion box-->
193 <div class="modal hide" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true">
194 <div class="modal-header">
195 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
196 <h3>Confirm deletion</h3>
198 [% UNLESS book_foot_loop %]
199 <div class="modal-body">
200 <p>Are you sure you want to delete this basket?</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</button>
207 <div class="modal-body">
208 <p>Are you sure you want to delete this basket?</p>
210 <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
211 <p>If items have been created when ordering or receiving, they will be deleted.</p>
212 <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>
214 <div class="modal-footer">
215 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
216 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],0); return false;">Delete basket and orders</button>
217 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],1); return false;">Delete basket, orders and bibs</button>
223 [% UNLESS ( grouped ) %]
224 <div id="toolbar" class="btn-toolbar">
225 <div class="btn-group"><a href="#" class="btn btn-small" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen this basket</a></div>
226 <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>
232 [% IF ( NO_BOOKSELLER ) %]
233 <h2>Vendor not found</h2>
235 [% IF ( delete_confirmed ) %]
236 <h3>Basket deleted</h3>
237 [% IF (cannotdelbiblios) %]
238 <div class="dialog alert">
239 <p><strong>Warning:</strong></p>
240 <p><strong>The following records could not be deleted:</strong></p>
242 [% FOREACH cannotdelbiblio IN cannotdelbiblios %]
243 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber %]">[% cannotdelbiblio.title |html %]</a> by [% cannotdelbiblio.author %]:
245 [% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount %] item(s) attached.</li>[% END %]
246 [% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions %] subscription(s) attached.</li>[% END %]
247 [% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio %] order(s) attached.</li>[% END %]
248 [% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %]
254 <a href="booksellers.pl">Click here to go back to booksellers page</a>
256 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
259 <h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a></h1>
260 [% IF ( basketno ) %]
261 <div id="acqui_basket_summary" class="yui-g">
263 <div class="yui-u first">
265 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
266 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
267 [% IF ( basketcontractno ) %]
268 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
270 [% IF ( deliveryplace ) %]<li><span class="label">Delivery place:</span> [% deliveryplace %]</li>[% END %]
271 [% IF ( billingplace ) %]<li><span class="label">Billing place:</span> [% billingplace %]</li>[% END %]
272 [% IF ( authorisedbyname ) %]<li><span class="label">Created by:</span> [% authorisedbyname %]</li>[% END %]
274 <form action="" method="post">
275 <span class="label">Managed by:</span>
276 <div style="float:left">
277 <ul id="users_names" style="padding-left:0">
278 [% FOREACH user IN users %]
279 <li id="user_[% user.borrowernumber %]">
280 [% user.firstname %] [% user.surname %]
281 [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
285 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
286 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids %]" />
287 <input type="hidden" id="op" name="op" value="mod_users" />
288 <input type="button" id="add_user" onclick="UserSearchPopup();" value="Add user" />
289 <input type="submit" value="Save changes" />
294 <span class="label">Library:</span>
295 [% IF basketbranchname %]
296 [% basketbranchname %]
300 [% IF branches_loop.size %]
301 <form action="" method="post">
302 <select id="branch" name="branch">
303 <option value="">(no library)</option>
304 [% FOREACH branch IN branches_loop %]
305 [% IF (branch.selected) %]
306 <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
308 <option value="[% branch.branchcode %]"> [% branch.branchname %]</option>
312 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
313 <input type="hidden" id="op" name="op" value="mod_branch" />
314 <input type="submit" value="Change" />
318 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
319 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
320 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
324 [% IF ( closedate ) %]
326 [% IF ( CAN_user_acquisition_group_manage ) %]
327 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
331 <span class="label">Basket group:</span>
332 [% IF basketgroup.id and not basketgroup.name %]
333 [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
335 [% IF basketgroup.closed %]
336 [% IF ( CAN_user_acquisition_group_manage ) %]
337 <a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="basketgroup">[% basketgroup.name %] (closed)</a>
339 [% basketgroup.name %] (closed)
341 [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
342 [%- IF basketgroup.id -%]
343 [% basketgroup.name %]
348 <select id="basketgroupid" name="basketgroupid">
349 <option value="">No group</option>
350 [% FOREACH bg IN basketgroups %]
351 [% IF ( bg.default ) %]
352 <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
354 [% UNLESS bg.closed %]
355 <option value="[% bg.id %]">[% bg.name %]</option>
357 <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
361 <option value="new">Add new group</option>
363 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
364 <input type="hidden" value="mod_basket" name="op" />
365 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
366 <input type="submit" value="Change basket group" />
369 [% IF ( basketgroup.deliveryplacename ) %]<li><span class="label">Basket group delivery placename:</span> [% basketgroup.deliveryplacename %]</li>[% END %]
370 [% IF ( basketgroup.billingplacename ) %]<li><span class="label">Basket group billing place:</span> [% basketgroup.billingplacename %]</li>[% END %]
372 [% IF ( CAN_user_acquisition_group_manage ) %]
380 [% IF ( duplinbatch ) %]<div class="dialog alert">
381 <h4>Duplicate warning</h4>
382 <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>
385 <div id="acqui_basket_content" class="yui-g">
386 [% IF ( books_loop ) %]
388 <label for="show_all_details">
389 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
397 <th class="gste">RRP tax exc.</th>
398 <th class="gste">ecost tax exc.</th>
399 <th class="gsti">RRP tax inc.</th>
400 <th class="gsti">ecost tax inc.</th>
402 <th class="gste">Total tax exc. ([% currency %])</th>
403 <th class="gsti">Total tax inc. ([% currency %])</th>
407 <th>Supplier report</th>
409 [% UNLESS ( closedate ) %]
417 [% FOREACH foot_loo IN book_foot_loop %]
420 <th>Total (GST [% foot_loo.gstrate * 100 | $Price %])</th>
421 <th class="gste"> </th>
422 <th class="gste"> </th>
423 <th class="gsti"> </th>
424 <th class="gsti"> </th>
425 <th>[% foot_loo.quantity %]</th>
426 <th class="gste">[% foot_loo.totalgste | $Price%]</th>
427 <th class="gsti">[% foot_loo.totalgsti | $Price %]</th>
429 <th>[% foot_loo.gstvalue | $Price %]</th>
433 [% UNLESS ( closedate ) %]
442 <th>Total ([% currency %])</th>
443 <th class="gste"> </th>
444 <th class="gste"> </th>
445 <th class="gsti"> </th>
446 <th class="gsti"> </th>
447 <th>[% total_quantity %]</th>
448 <th class="gste">[% total_gste | $Price %]</th>
449 <th class="gsti">[% total_gsti | $Price %]</th>
451 <th>[% total_gstvalue | $Price %]</th>
455 [% UNLESS ( closedate ) %]
463 [% FOREACH books_loo IN books_loop %]
464 [% IF ( books_loo.order_received ) %]
465 <tr class="disabled">
470 [% books_loo.ordernumber %]
474 [% IF ( books_loo.order_received ) %] (rcvd)[% END %]
475 [% IF books_loo.title %]
476 <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 %]
478 <em>Deleted bibliographic record, can't find title</em><br />
481 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
482 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
483 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
484 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
485 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
486 [% IF ( books_loo.suggestionid ) %]
488 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
489 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
492 [% IF ( books_loo.order_internalnote ) %]
493 <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>
495 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Add internal note</a>]
497 [% IF ( books_loo.order_vendornote ) %]
498 <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>
500 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Add vendor note</a>]
502 [% IF (books_loo.transferred_from) %]
503 [% basket = books_loo.transferred_from.basket %]
504 [% bookseller = books_loo.transferred_from.bookseller %]
505 [% timestamp = books_loo.transferred_from.timestamp %]
506 <p>Transferred from basket:
507 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
508 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
509 on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
510 [% timestamp | $KohaDates %]
515 [% 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 ... %]
516 [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
517 <td class="number gste [% IF books_loo.rrpgste.search(zero_regex) %]error[% END %]">[% books_loo.rrpgste | $Price %]</td>
518 <td class="number gste [% IF books_loo.ecostgste.search(zero_regex) %]error[% END %]">[% books_loo.ecostgste | $Price%]</td>
519 <td class="number gsti [% IF books_loo.rrpgsti.search(zero_regex) %]error[% END %]">[% books_loo.rrpgsti | $Price %]</td>
520 <td class="number gsti [% IF books_loo.ecostgsti.search(zero_regex) %]error[% END %]">[% books_loo.ecostgsti | $Price %]</td>
521 <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity %]</td>
522 <td class="number gste [% IF books_loo.totalgste.search(zero_regex) %]error[% END %]">[% books_loo.totalgste | $Price %]</td>
523 <td class="number gsti [% IF books_loo.totalgsti.search(zero_regex) %]error[% END %]">[% books_loo.totalgsti | $Price %]</td>
524 <td class="number">[% books_loo.gstrate * 100 | $Price %]</td>
525 <td class="number [% IF books_loo.gstvalue.search(zero_regex) %]error[% END %]">[% books_loo.gstvalue | $Price %]</td>
526 <td>[% books_loo.budget_name %]</td>
527 <td>[% books_loo.suppliers_report %]</td>
529 [% UNLESS ( closedate ) %]
531 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
532 [% UNLESS (books_loo.order_received) %]
534 <a href="#" onclick="transfer_order_popup([% books_loo.ordernumber %]); return false;">Transfer</a>
538 [% IF ( books_loo.left_holds_on_order ) %]
539 <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>
541 <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>
543 [% IF ( books_loo.can_del_bib ) %]
544 <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>
546 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
548 [% IF ( books_loo.left_item ) %]
549 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
551 [% IF ( books_loo.left_biblio ) %]
552 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
554 [% IF ( books_loo.left_subscription ) %]
555 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
557 [% IF ( books_loo.left_holds ) %]
558 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
568 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
571 [% IF (cancelledorders_loop) %]
572 <div id="cancelledorders">
573 <h2>Cancelled orders</h2>
574 <table id="cancelledorderst">
579 <th class="gste">RRP tax exc.</th>
580 <th class="gste">ecost tax exc.</th>
581 <th class="gsti">RRP tax inc.</th>
582 <th class="gsti">ecost tax inc.</th>
584 <th class="gste">Total tax exc. ([% currency %])</th>
585 <th class="gsti">Total tax inc. ([% currency %])</th>
592 [% FOREACH order IN cancelledorders_loop %]
593 <tr style="color:grey">
595 [% order.ordernumber %]
599 [% IF ( order.order_received ) %] (rcvd)[% END %]
600 [% IF (order.title) %]
601 [% order.title |html %][% IF order.author %] by [% order.author %][% END %]
603 <em>Deleted bibliographic record, can't find title</em>
606 [% IF ( order.order_internalnote ) %] [% order.order_internalnote %][% END %]
607 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
608 [% IF ( order.issn ) %] - [% order.issn %][% END %]
609 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
610 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
611 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
612 [% IF ( order.cancellationreason ) %]
614 Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) %]
617 [% IF order.transferred_to %]
618 [% basket = order.transferred_to.basket %]
619 [% bookseller = order.transferred_to.bookseller %]
620 [% timestamp = order.transferred_to.timestamp %]
621 <p>Transferred to basket:
622 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
623 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
624 on <span title="[% timestamp | $KohaDates with_hours = 1%]">
625 [% timestamp | $KohaDates %]
630 <td class="number gste">[% order.rrpgste | $Price %]</td>
631 <td class="number gste">[% order.ecostgste | $Price %]</td>
632 <td class="number gsti">[% order.rrpgsti | $Price %]</td>
633 <td class="number gsti">[% order.ecostgsti | $Price %]</td>
634 <td class="number">[% order.quantity %]</td>
635 <td class="number gste">[% order.totalgste | $Price %]</td>
636 <td class="number gsti">[% order.totalgsti | $Price %]</td>
637 <td class="number">[% order.gstrate * 100 | $Price %]</td>
638 <td class="number">[% order.gstvalue | $Price %]</td>
639 <td>[% order.budget_name %]
647 [% UNLESS ( closedate ) %]
650 <div id="addtoBasket" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true">
651 <div class="modal-body">
653 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
656 <div class="modal-footer">
657 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
664 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
666 [% IF ( confirm_close ) %]
667 <div id="closebasket_needsconfirmation" class="dialog alert">
669 <form action="/cgi-bin/koha/acqui/basket.pl">
670 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
671 [% IF ( CAN_user_acquisition_group_manage ) %]
673 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
674 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
677 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
678 <input type="hidden" value="close" name="op" />
679 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
680 <input type="hidden" name="confirm" value="1" />
681 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
682 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
684 <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
685 <input type="hidden" name="basketno" value="[% basketno %]" />
686 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
691 <div id="closebasket_needsconfirmation" class="dialog alert">
693 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
694 <h1>Are you sure you want to generate an edifact order and close basket [% basketname|html %]?</h1>
695 [% IF CAN_user_acquisition_group_manage %]
697 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
698 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
701 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
702 <input type="hidden" value="ediorder" name="op" />
703 <input type="hidden" name="ean" value="[% ean %]" />
704 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
705 <input type="hidden" name="confirm" value="1" />
706 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
707 <input type="submit" class="approve" value="Yes, close (Y)" accesskey="y" />
708 <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;" />
713 [% END %][%# IF (cannot_manage_basket) %]
716 [% INCLUDE 'acquisitions-menu.inc' %]
719 [% INCLUDE 'intranet-bottom.inc' %]