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(skip) {
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"
111 <style type="text/css">
112 .sortmsg {font-size: 80%;}
115 <body id="acq_basket" class="acq">
116 [% INCLUDE 'header.inc' %]
117 [% INCLUDE 'acquisitions-search.inc' %]
120 <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>
122 <div id="doc3" class="yui-t2">
127 [% UNLESS ( confirm_close ) %]
128 [% UNLESS ( selectbasketg ) %]
129 [% UNLESS ( closedate ) %]
131 <script type="text/javascript">
133 // prepare DOM for YUI Toolbar
134 $(document).ready(function() {
137 // YUI Toolbar Functions
138 function yuiToolbar() {
139 [% IF ( unclosable ) %]
140 new YAHOO.widget.Button("closebutton", {disabled:true});
141 [% ELSIF ( uncertainprices ) %]
142 new YAHOO.widget.Button("uncertpricesbutton");
144 new YAHOO.widget.Button("closebutton");
146 new YAHOO.widget.Button("basketheadbutton");
147 new YAHOO.widget.Button("exportbutton");
148 new YAHOO.widget.Button("delbasketbutton");
153 <ul id="toolbar-list" class="toolbar">
154 <li><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="button" id="basketheadbutton">Edit basket</a></li>
155 <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
156 [% IF ( unclosable ) %]
157 [% ELSIF ( uncertainprices ) %]
158 <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
160 <li><a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="closebutton">Close this basket</a></li>
162 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
167 [% UNLESS ( grouped ) %]
169 <script type="text/javascript">
171 // prepare DOM for YUI Toolbar
172 $(document).ready(function() {
175 // YUI Toolbar Functions
176 function yuiToolbar() {
177 new YAHOO.widget.Button("reopenbutton");
178 new YAHOO.widget.Button("exportbutton");
182 <ul id="toolbar-list" class="toolbar">
183 <li><a href="javascript:confirm_reopen([% skip_confirm_reopen %]);" class="button" id="reopenbutton">Reopen this basket</a></li>
184 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
191 [% IF ( NO_BOOKSELLER ) %]
192 <h2>Vendor not found</h2>
194 [% IF ( delete_confirmed ) %]
195 <h3>Basket deleted</h3>
196 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
198 <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>
199 [% IF ( delete_confirm ) %]
201 <span class="yui-button yui-link-button">
202 <em class="first-child">
203 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
206 <span class="yui-button yui-link-button">
207 <em class="first-child">
208 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
213 [% IF ( basketno ) %]
214 <div id="acqui_basket_summary" class="yui-g">
216 <div class="yui-u first">
218 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
219 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
220 [% IF ( basketcontractno ) %]
221 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
223 [% IF ( deliveryplace ) %]<li><span class="label">Delivery place:</span> [% deliveryplace %]</li>[% END %]
224 [% IF ( billingplace ) %]<li><span class="label">Billing place:</span> [% billingplace %]</li>[% END %]
225 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
226 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
227 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
228 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
232 [% IF ( closedate ) %]
234 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
236 <p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
237 <p><select id="basketgroupid" name="basketgroupid">
238 <option value="new">Add new group</option>
239 [% FOREACH basketgroup IN basketgroups %]
240 [% IF ( basketgroup.default ) %]
241 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
243 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
248 <p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
249 <input type="hidden" value="mod_basket" name="op" />
250 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
251 <input type="submit" value="Change basket group" /></p>
254 [% IF ( basketgroupdeliveryplace ) %]<p>Basketgroup Delivery place: [% basketgroupdeliveryplace %]</p>[% END %]
255 [% IF ( basketgroupbillingplace ) %]<p>Basketgroup Billing place: [% basketgroupbillingplace %]</p>[% END %]
262 [% UNLESS ( delete_confirm ) %]
263 <div id="acqui_basket_content" class="yui-g">
264 <label for="show_all_details">
265 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
268 <h2>Order Details</h2>
269 [% IF ( books_loop ) %]
274 <th class="gste">RRP tax exc.</th>
275 <th class="gste">ecost tax exc.</th>
276 <th class="gsti">RRP tax inc.</th>
277 <th class="gsti">ecost tax inc.</th>
279 <th class="gste">Total tax exc. ([% currency %])</th>
280 <th class="gsti">Total tax inc. ([% currency %])</th>
285 [% UNLESS ( closedate ) %]
293 [% FOREACH foot_loo IN book_foot_loop %]
295 <th>Total (GST [% foot_loo.gstgsti %])</th>
296 <th class="gste"/><th class="gste"/><th class="gsti"/><th class="gsti"/>
297 <th>[% foot_loo.quantity %]</th>
298 <th class="gste">[% foot_loo.totalgste %]</th>
299 <th class="gsti">[% foot_loo.totalgsti %]</th>
301 <th>[% foot_loo.gstvalue %]</th>
304 [% UNLESS ( closedate ) %]
312 <th>Total ([% currency %])</th>
313 <th class="gste"/><th class="gste"/><th class="gsti"/><th class="gsti"/>
314 <th>[% total_quantity %]</th>
315 <th class="gste">[% total_gste %]</th>
316 <th class="gsti">[% total_gsti %]</th>
318 <th>[% total_gstvalue %]</th>
321 [% UNLESS ( closedate ) %]
329 [% FOREACH books_loo IN books_loop %]
330 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
332 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
333 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
335 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
336 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
337 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
338 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
339 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
340 [% IF ( books_loo.suggestionid ) %]
342 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
343 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
345 [% IF ( books_loo.notes ) %]
346 <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>
348 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Add note</a>]
352 <td class="number gste [% IF books_loo.rrpgste.search('^0') %]error[% END %]">[% books_loo.rrpgste %]</td>
353 <td class="number gste [% IF books_loo.ecostgste.search('^0') %]error[% END %]">[% books_loo.ecostgste %]</td>
354 <td class="number gsti [% IF books_loo.rrpgsti.search('^0') %]error[% END %]">[% books_loo.rrpgsti %]</td>
355 <td class="number gsti [% IF books_loo.ecostgsti.search('^0') %]error[% END %]">[% books_loo.ecostgsti %]</td>
356 <td class="number [% IF books_loo.quantity.search('^0') %]error[% END %]">[% books_loo.quantity %]</td>
357 <td class="number gste [% IF books_loo.totalgste.search('^0') %]error[% END %]">[% books_loo.totalgste %]</td>
358 <td class="number gsti [% IF books_loo.totalgsti.search('^0') %]error[% END %]">[% books_loo.totalgsti %]</td>
359 <td class="number [% IF books_loo.gstgsti.search('^0') %]error[% END %]">[% books_loo.gstgsti %]</td>
360 <td class="number [% IF books_loo.gstvalue.search('^0') %]error[% END %]">[% books_loo.gstvalue %]</td>
361 <td>[% books_loo.budget_name %]</td>
363 [% UNLESS ( closedate ) %]
365 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
368 [% IF ( books_loo.left_holds_on_order ) %]
369 <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>
371 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
373 [% IF ( books_loo.can_del_bib ) %]
374 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
376 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
378 [% IF ( books_loo.left_item ) %]
379 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
381 [% IF ( books_loo.left_biblio ) %]
382 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
384 [% IF ( books_loo.left_subscription ) %]
385 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
387 [% IF ( books_loo.left_holds ) %]
388 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
399 <tr><td>Basket empty</td></tr>
402 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
405 [% IF (cancelledorders_loop) %]
406 <div id="cancelledorders">
407 <h2>Cancelled orders</h2>
408 <table id="cancelledorderst">
412 <th class="gste">RRP tax exc.</th>
413 <th class="gste">ecost tax exc.</th>
414 <th class="gsti">RRP tax inc.</th>
415 <th class="gsti">ecost tax inc.</th>
417 <th class="gste">Total tax exc. ([% currency %])</th>
418 <th class="gsti">Total tax inc. ([% currency %])</th>
425 [% FOREACH order IN cancelledorders_loop %]
426 <tr style="color:grey">
429 [% IF ( order.order_received ) %] (rcvd)[% END %]
430 [% IF (order.title) %]
431 [% order.title |html %] by [% order.author %]<br />
433 <em>Deleted bibliographic record, can't find title</em><br />
435 [% IF ( order.notes ) %] [% order.notes %][% END %]
436 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
437 [% IF ( order.issn ) %] - [% order.issn %][% END %]
438 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
439 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
440 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
443 <td class="number gste">[% order.rrpgste %]</td>
444 <td class="number gste">[% order.ecostgste %]</td>
445 <td class="number gsti">[% order.rrpgsti %]</td>
446 <td class="number gsti">[% order.ecostgsti %]</td>
447 <td class="number">[% order.quantity %]</td>
448 <td class="number gste">[% order.totalgste %]</td>
449 <td class="number gsti">[% order.totalgsti %]</td>
450 <td class="number">[% order.gstgsti %]</td>
451 <td class="number">[% order.gstvalue %]</td>
452 <td>[% order.budget_name %]
460 [% UNLESS ( closedate ) %]
461 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
465 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
467 [% IF ( confirm_close ) %]
468 <div id="closebasket_needsconfirmation" class="dialog alert">
470 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
471 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
473 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
474 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
476 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
477 <input type="hidden" value="close" name="op" />
478 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
479 <input type="hidden" name="confirm" value="1" />
480 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
481 <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
482 <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;" />
489 [% INCLUDE 'acquisitions-menu.inc' %]
492 [% INCLUDE 'intranet-bottom.inc' %]