2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
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);
35 [% UNLESS ( closedate ) %]
36 <script type="text/javascript">
38 function confirm_close() {
39 var is_confirmed = confirm(_("Are you sure you want to close this basket?"));
41 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
44 function confirm_deletion() {
45 var is_confirmed = confirm(_("Are you sure you want to delete this basket?"));
47 window.location = "[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]";
50 function confirm_delete_item(ordernumber, biblionumber) {
51 var is_confirmed = confirm(_("Are you sure you want to delete this order ?"));
53 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
57 function confirm_delete_biblio(ordernumber, biblionumber) {
58 var is_confirmed = confirm(_("Are you sure you want to delete this catalog record and order ?"));
60 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
67 <script type="text/javascript">
69 $(document).ready(function(){
70 $("#basketgroupid").change(function(){
71 if($(this).val() == "new"){
72 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
78 [% UNLESS ( grouped ) %]
79 <script type="text/javascript">
81 function confirm_reopen() {
82 var skip = [% IF ( skip_confirm_reopen ) %] 1 [% ELSE %] 0 [% END %];
83 var is_confirmed = skip || confirm(_("Are you sure you want to reopen this basket?"));
85 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
92 <script type="text/javascript">
94 $(document).ready(function() {
95 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
96 "sPaginationType": "four_button",
98 [% UNLESS ( closedate ) %]
100 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
105 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
106 "sPaginationType": "four_button"
108 $("#delbasketbutton").on("click",function(e){
112 $("#reopenbutton").on("click",function(e){
120 <style type="text/css">
121 .sortmsg {font-size: 80%;}
124 <body id="acq_basket" class="acq">
125 [% INCLUDE 'header.inc' %]
126 [% INCLUDE 'acquisitions-search.inc' %]
129 <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 %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</div>
131 <div id="doc3" class="yui-t2">
136 [% UNLESS ( confirm_close ) %]
137 [% UNLESS ( selectbasketg ) %]
138 [% UNLESS ( closedate ) %]
139 <div id="toolbar" class="btn-toolbar">
140 <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="btn btn-small" id="basketheadbutton"><i class="icon-pencil"></i> Edit basket</a></div>
141 <div class="btn-group"><a href="#" class="btn btn-small" id="delbasketbutton"><i class="icon-remove"></i> Delete this basket</a></div>
142 [% IF ( unclosable ) %]
143 [% ELSIF ( uncertainprices ) %]
144 <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>
146 <div class="btn-group">
147 <a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="closebutton"><i class="icon-remove-sign"></i> Close this basket</a>
150 <div class="btn-group"><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket as CSV</a></div>
154 [% UNLESS ( grouped ) %]
155 <div id="toolbar" class="btn-toolbar">
156 <div class="btn-group"><a href="#" class="btn btn-small" id="reopenbutton"><i class="icon-refresh"></i> Reopen this basket</a></div>
157 <div class="btn-group"><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket as CSV</a></div>
163 [% IF ( NO_BOOKSELLER ) %]
164 <h2>Vendor not found</h2>
166 [% IF ( delete_confirmed ) %]
167 <h3>Basket deleted</h3>
168 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
170 <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a></h1>
171 [% IF ( delete_confirm ) %]
173 <span class="yui-button yui-link-button">
174 <em class="first-child">
175 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
178 <span class="yui-button yui-link-button">
179 <em class="first-child">
180 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
185 [% IF ( basketno ) %]
186 <div id="acqui_basket_summary" class="yui-g">
188 <div class="yui-u first">
190 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
191 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
192 [% IF ( basketcontractno ) %]
193 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
195 [% IF ( deliveryplace ) %]<li><span class="label">Delivery place:</span> [% deliveryplace %]</li>[% END %]
196 [% IF ( billingplace ) %]<li><span class="label">Billing place:</span> [% billingplace %]</li>[% END %]
197 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
198 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
199 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
200 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
204 [% IF ( closedate ) %]
206 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
209 <span class="label">Basket group:</span>
210 [% IF basketgroup.closed %]
211 [% basketgroup.name %] (closed)
215 <select id="basketgroupid" name="basketgroupid">
216 <option value="new">Add new group</option>
217 [% FOREACH bg IN basketgroups %]
218 [% IF ( bg.default ) %]
219 <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
221 [% UNLESS bg.closed %]
222 <option value="[% bg.id %]">[% bg.name %]</option>
224 <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
229 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
230 <input type="hidden" value="mod_basket" name="op" />
231 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
232 <input type="submit" value="Change basket group" />
235 [% IF ( basketgroupdeliveryplace ) %]<li><span class="label">Basket group delivery place:</span> [% basketgroupdeliveryplace %]</li>[% END %]
236 [% IF ( basketgroupbillingplace ) %]<li><span class="label">Basket group billing place:</span> [% basketgroupbillingplace %]</li>[% END %]
245 [% UNLESS ( delete_confirm ) %]
246 <div id="acqui_basket_content" class="yui-g">
247 [% IF ( books_loop ) %]
249 <label for="show_all_details">
250 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
257 <th class="gste">RRP tax exc.</th>
258 <th class="gste">ecost tax exc.</th>
259 <th class="gsti">RRP tax inc.</th>
260 <th class="gsti">ecost tax inc.</th>
262 <th class="gste">Total tax exc. ([% currency %])</th>
263 <th class="gsti">Total tax inc. ([% currency %])</th>
268 [% UNLESS ( closedate ) %]
276 [% FOREACH foot_loo IN book_foot_loop %]
278 <th>Total (GST [% foot_loo.gstgsti %])</th>
279 <th class="gste"> </th>
280 <th class="gste"> </th>
281 <th class="gsti"> </th>
282 <th class="gsti"> </th>
283 <th>[% foot_loo.quantity %]</th>
284 <th class="gste">[% foot_loo.totalgste %]</th>
285 <th class="gsti">[% foot_loo.totalgsti %]</th>
287 <th>[% foot_loo.gstvalue %]</th>
290 [% UNLESS ( closedate ) %]
298 <th>Total ([% currency %])</th>
299 <th class="gste"> </th>
300 <th class="gste"> </th>
301 <th class="gsti"> </th>
302 <th class="gsti"> </th>
303 <th>[% total_quantity %]</th>
304 <th class="gste">[% total_gste %]</th>
305 <th class="gsti">[% total_gsti %]</th>
307 <th>[% total_gstvalue %]</th>
310 [% UNLESS ( closedate ) %]
318 [% FOREACH books_loo IN books_loop %]
319 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
321 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
322 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
324 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
325 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
326 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
327 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
328 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
329 [% IF ( books_loo.suggestionid ) %]
331 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
332 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
335 [% IF ( books_loo.notes ) %]
336 <p class="ordernote"><strong>Note: </strong>[% books_loo.notes|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Change note</a>]</p>
338 <p>[<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Add note</a>]</p>
341 <td class="number gste [% IF books_loo.rrpgste.search('^0') %]error[% END %]">[% books_loo.rrpgste %]</td>
342 <td class="number gste [% IF books_loo.ecostgste.search('^0') %]error[% END %]">[% books_loo.ecostgste %]</td>
343 <td class="number gsti [% IF books_loo.rrpgsti.search('^0') %]error[% END %]">[% books_loo.rrpgsti %]</td>
344 <td class="number gsti [% IF books_loo.ecostgsti.search('^0') %]error[% END %]">[% books_loo.ecostgsti %]</td>
345 <td class="number [% IF books_loo.quantity.search('^0') %]error[% END %]">[% books_loo.quantity %]</td>
346 <td class="number gste [% IF books_loo.totalgste.search('^0') %]error[% END %]">[% books_loo.totalgste %]</td>
347 <td class="number gsti [% IF books_loo.totalgsti.search('^0') %]error[% END %]">[% books_loo.totalgsti %]</td>
348 <td class="number [% IF books_loo.gstgsti.search('^0') %]error[% END %]">[% books_loo.gstgsti %]</td>
349 <td class="number [% IF books_loo.gstvalue.search('^0') %]error[% END %]">[% books_loo.gstvalue %]</td>
350 <td>[% books_loo.budget_name %]</td>
352 [% UNLESS ( closedate ) %]
354 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
357 [% IF ( books_loo.left_holds_on_order ) %]
358 <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>
360 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
362 [% IF ( books_loo.can_del_bib ) %]
363 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
365 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
367 [% IF ( books_loo.left_item ) %]
368 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
370 [% IF ( books_loo.left_biblio ) %]
371 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
373 [% IF ( books_loo.left_subscription ) %]
374 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
376 [% IF ( books_loo.left_holds ) %]
377 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
387 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
390 [% IF (cancelledorders_loop) %]
391 <div id="cancelledorders">
392 <h2>Cancelled orders</h2>
393 <table id="cancelledorderst">
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>
410 [% FOREACH order IN cancelledorders_loop %]
411 <tr style="color:grey">
414 [% IF ( order.order_received ) %] (rcvd)[% END %]
415 [% IF (order.title) %]
416 [% order.title |html %] by [% order.author %]<br />
418 <em>Deleted bibliographic record, can't find title</em><br />
420 [% IF ( order.notes ) %] [% order.notes %][% END %]
421 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
422 [% IF ( order.issn ) %] - [% order.issn %][% END %]
423 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
424 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
425 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
428 <td class="number gste">[% order.rrpgste %]</td>
429 <td class="number gste">[% order.ecostgste %]</td>
430 <td class="number gsti">[% order.rrpgsti %]</td>
431 <td class="number gsti">[% order.ecostgsti %]</td>
432 <td class="number">[% order.quantity %]</td>
433 <td class="number gste">[% order.totalgste %]</td>
434 <td class="number gsti">[% order.totalgsti %]</td>
435 <td class="number">[% order.gstgsti %]</td>
436 <td class="number">[% order.gstvalue %]</td>
437 <td>[% order.budget_name %]
445 [% UNLESS ( closedate ) %]
446 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
450 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
452 [% IF ( confirm_close ) %]
453 <div id="closebasket_needsconfirmation" class="dialog alert">
455 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
456 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
458 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
459 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
461 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
462 <input type="hidden" value="close" name="op" />
463 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
464 <input type="hidden" name="confirm" value="1" />
465 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
466 <input type="submit" class="approve" value="Yes, close (Y)" accesskey="y" />
467 <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;" />
474 [% INCLUDE 'acquisitions-menu.inc' %]
477 [% INCLUDE 'intranet-bottom.inc' %]