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>
9 [% UNLESS ( closedate ) %]
10 <script type="text/javascript">
12 function confirm_close() {
13 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
15 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
18 function confirm_deletion() {
19 var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
21 window.location = "[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]";
24 function confirm_delete_item(ordernumber, biblionumber) {
25 var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
27 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
31 function confirm_delete_biblio(ordernumber, biblionumber) {
32 var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
34 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
41 <script type="text/javascript">
43 $(document).ready(function(){
44 $("#basketgroupid").change(function(){
45 if($(this).val() == "new"){
46 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
52 [% UNLESS ( grouped ) %]
53 <script type="text/javascript">
55 function confirm_reopen(skip) {
56 var is_confirmed = skip || confirm(_('Are you sure you want to reopen this basket?'));
58 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
65 <script type="text/javascript">
67 $(document).ready(function() {
68 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
69 "sPaginationType": "four_button",
71 [% UNLESS ( closedate ) %]
73 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
78 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
79 "sPaginationType": "four_button"
85 <style type="text/css">
86 .sortmsg {font-size: 80%;}
89 <body id="acq_basket" class="acq">
90 [% INCLUDE 'header.inc' %]
91 [% INCLUDE 'acquisitions-search.inc' %]
94 <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>
96 <div id="doc3" class="yui-t2">
101 [% UNLESS ( confirm_close ) %]
102 [% UNLESS ( selectbasketg ) %]
103 [% UNLESS ( closedate ) %]
105 <script type="text/javascript">
107 // prepare DOM for YUI Toolbar
108 $(document).ready(function() {
111 // YUI Toolbar Functions
112 function yuiToolbar() {
113 [% IF ( unclosable ) %]
114 new YAHOO.widget.Button("closebutton", {disabled:true});
115 [% ELSIF ( uncertainprices ) %]
116 new YAHOO.widget.Button("uncertpricesbutton");
118 new YAHOO.widget.Button("closebutton");
120 new YAHOO.widget.Button("basketheadbutton");
121 new YAHOO.widget.Button("exportbutton");
122 new YAHOO.widget.Button("delbasketbutton");
127 <ul id="toolbar-list" class="toolbar">
128 <li><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="button" id="basketheadbutton">Edit basket</a></li>
129 <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
130 [% IF ( unclosable ) %]
131 [% ELSIF ( uncertainprices ) %]
132 <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
134 <li><a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="closebutton">Close this basket</a></li>
136 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
141 [% UNLESS ( grouped ) %]
143 <script type="text/javascript">
145 // prepare DOM for YUI Toolbar
146 $(document).ready(function() {
149 // YUI Toolbar Functions
150 function yuiToolbar() {
151 new YAHOO.widget.Button("reopenbutton");
155 <ul id="toolbar-list" class="toolbar">
156 <li><a href="javascript:confirm_reopen([% skip_confirm_reopen %]);" class="button" id="reopenbutton">Reopen this basket</a></li>
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 ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
196 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
197 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
198 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
202 [% IF ( closedate ) %]
204 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
206 <p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
207 <p><select id="basketgroupid" name="basketgroupid">
208 <option value="new">Add new group</option>
209 [% FOREACH basketgroup IN basketgroups %]
210 [% IF ( basketgroup.default ) %]
211 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
213 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
218 <p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
219 <input type="hidden" value="mod_basket" name="op" />
220 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
221 <input type="submit" value="Change basket group" /></p>
230 [% UNLESS ( delete_confirm ) %]
231 <div id="acqui_basket_content" class="yui-g">
232 <h2>Order Details</h2>
233 [% IF ( books_loop ) %]
244 [% UNLESS ( closedate ) %]
254 <th scope="row">Total tax exc.</th>
255 <td>[% total_rrp_gste %]</td>
257 <td>[% qty_total %]</td>
258 <td>[% total_est_gste %]</td>
260 [% IF ( closedate ) %]
261 <td colspan="1" rowspan="3"> </td>
263 <td colspan="3" rowspan="3"> </td>
268 <th scope="row">Tax ([% gist_rate %])</th>
269 <td>[% gist_rrp %]</td>
272 <td>[% gist_est %]</td>
275 <th scope="row">Total tax inc. ([% currency %])</th>
276 <td>[% total_rrp_gsti %]</td>
278 <td>[% qty_total %]</td>
279 <td>[% total_est_gsti %]</td>
283 <th scope="row">Total ([% currency %])</th>
284 <td>[% total_rrp_gsti %]</td>
286 <td>[% qty_total %]</td>
287 <td>[% total_est_gsti %]</td>
288 <td colspan="3"> </td>
293 [% FOREACH books_loo IN books_loop %]
294 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
296 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
297 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
299 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
300 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
301 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
302 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
303 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
304 [% IF ( books_loo.suggestionid ) %]
306 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
307 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
309 [% IF ( books_loo.notes ) %]
310 <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>
312 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Add note</a>]
316 <td class="number [% IF books_loo.rrp.search('^0') %]error[% END %]">[% books_loo.rrp %]</td>
317 <td class="number [% IF books_loo.ecost.search('^0') %]error[% END %]">[% books_loo.ecost %]</td>
318 <td class="number [% IF books_loo.quantity.search('^0') %]error[% END %]">[% books_loo.quantity %]</td>
319 <td class="number [% IF books_loo.line_total.search('^0') %]error[% END %]">[% books_loo.line_total %]</td>
320 <td>[% books_loo.budget_name %]</td>
322 [% UNLESS ( closedate ) %]
324 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
327 [% IF ( books_loo.left_holds_on_order ) %]
328 <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>
330 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
332 [% IF ( books_loo.can_del_bib ) %]
333 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
335 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
337 [% IF ( books_loo.left_item ) %]
338 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
340 [% IF ( books_loo.left_biblio ) %]
341 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
343 [% IF ( books_loo.left_subscription ) %]
344 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
346 [% IF ( books_loo.left_holds ) %]
347 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
358 <tr><td>Basket empty</td></tr>
361 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
364 [% IF (cancelledorders_loop) %]
365 <div id="cancelledorders">
366 <h2>Cancelled orders</h2>
367 <table id="cancelledorderst">
379 [% FOREACH order IN cancelledorders_loop %]
380 <tr style="color:grey">
383 [% IF ( order.order_received ) %] (rcvd)[% END %]
384 [% IF (order.title) %]
385 [% order.title |html %] by [% order.author %]<br />
387 <em>Deleted bibliographic record, can't find title</em><br />
389 [% IF ( order.notes ) %] [% order.notes %][% END %]
390 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
391 [% IF ( order.issn ) %] - [% order.issn %][% END %]
392 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
393 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
394 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
397 <td><p>[% order.rrp %]</p></td>
398 <td><p>[% order.ecost %]</p></td>
399 <td><p>[% order.quantity %]</p></td>
400 <td><p>[% order.line_total %]</p></td>
401 <td><p>[% order.budget_name %]</p></td>
409 [% UNLESS ( closedate ) %]
410 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
414 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
416 [% IF ( confirm_close ) %]
417 <div id="closebasket_needsconfirmation" class="dialog alert">
419 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
420 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
422 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
423 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
425 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
426 <input type="hidden" value="close" name="op" />
427 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
428 <input type="hidden" name="confirm" value="1" />
429 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
430 <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
431 <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;" />
438 [% INCLUDE 'acquisitions-menu.inc' %]
441 [% INCLUDE 'intranet-bottom.inc' %]