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 [% INCLUDE 'doc-head-close.inc' %]
5 [% UNLESS ( closedate ) %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
7 <script type="text/javascript">
9 $(document).ready(function() {
10 $("#orders").tablesorter({
16 $("#cancelledorderst").tablesorter();
18 function confirm_close() {
19 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
21 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
24 function confirm_deletion() {
25 var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
27 window.location = "[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]";
30 function confirm_delete_item(ordernumber, biblionumber) {
31 var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
33 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
37 function confirm_delete_biblio(ordernumber, biblionumber) {
38 var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
40 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
47 <script type="text/javascript">
49 $(document).ready(function(){
50 $("#basketgroupid").change(function(){
51 if($(this).val() == "new"){
52 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
58 [% UNLESS ( grouped ) %]
59 <script type="text/javascript">
61 function confirm_reopen(skip) {
62 var is_confirmed = skip || confirm(_('Are you sure you want to reopen this basket?'));
64 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
71 <style type="text/css">
72 .sortmsg {font-size: 80%;}
75 <body id="acq_basket" class="acq">
76 [% INCLUDE 'header.inc' %]
77 [% INCLUDE 'acquisitions-search.inc' %]
80 <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>
82 <div id="doc3" class="yui-t2">
87 [% UNLESS ( confirm_close ) %]
88 [% UNLESS ( selectbasketg ) %]
89 [% UNLESS ( closedate ) %]
91 <script type="text/javascript">
93 // prepare DOM for YUI Toolbar
94 $(document).ready(function() {
97 // YUI Toolbar Functions
98 function yuiToolbar() {
99 [% IF ( unclosable ) %]
100 new YAHOO.widget.Button("closebutton", {disabled:true});
101 [% ELSIF ( uncertainprices ) %]
102 new YAHOO.widget.Button("uncertpricesbutton");
104 new YAHOO.widget.Button("closebutton");
106 new YAHOO.widget.Button("basketheadbutton");
107 new YAHOO.widget.Button("exportbutton");
108 new YAHOO.widget.Button("delbasketbutton");
113 <ul id="toolbar-list" class="toolbar">
114 <li><a href="basketheader.pl?basketno=[% basketno %]&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
115 <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
116 [% IF ( unclosable ) %]
117 [% ELSIF ( uncertainprices ) %]
118 <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
120 <li><a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="closebutton">Close this basket</a></li>
122 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
127 [% UNLESS ( grouped ) %]
129 <script type="text/javascript">
131 // prepare DOM for YUI Toolbar
132 $(document).ready(function() {
135 // YUI Toolbar Functions
136 function yuiToolbar() {
137 new YAHOO.widget.Button("reopenbutton");
141 <ul id="toolbar-list" class="toolbar">
142 <li><a href="javascript:confirm_reopen([% skip_confirm_reopen %]);" class="button" id="reopenbutton">Reopen this basket</a></li>
149 [% IF ( NO_BOOKSELLER ) %]
150 <h2>Vendor not found</h2>
152 [% IF ( delete_confirmed ) %]
153 <h3>Basket deleted</h3>
154 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
156 <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>
157 [% IF ( delete_confirm ) %]
159 <span class="yui-button yui-link-button">
160 <em class="first-child">
161 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
164 <span class="yui-button yui-link-button">
165 <em class="first-child">
166 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
171 [% IF ( basketno ) %]
172 <div id="acqui_basket_summary" class="yui-g">
174 <div class="yui-u first">
176 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
177 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
178 [% IF ( basketcontractno ) %]
179 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
181 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
182 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
183 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
184 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
188 [% IF ( closedate ) %]
190 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
192 <p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
193 <p><select id="basketgroupid" name="basketgroupid">
194 <option value="new">Add new group</option>
195 [% FOREACH basketgroup IN basketgroups %]
196 [% IF ( basketgroup.default ) %]
197 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
199 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
204 <p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
205 <input type="hidden" value="mod_basket" name="op" />
206 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
207 <input type="submit" value="Change basket group" /></p>
216 [% UNLESS ( delete_confirm ) %]
217 <div id="acqui_basket_content" class="yui-g">
218 <h2>Order Details</h2>
219 [% IF ( books_loop ) %]
230 [% UNLESS ( closedate ) %]
240 <th scope="row">Total tax exc.</th>
241 <td>[% total_rrp_gste %]</td>
243 <td>[% qty_total %]</td>
244 <td>[% total_est_gste %]</td>
246 [% IF ( closedate ) %]
247 <td colspan="1" rowspan="3"> </td>
249 <td colspan="3" rowspan="3"> </td>
254 <th scope="row">Tax ([% gist_rate %])</th>
255 <td>[% gist_rrp %]</td>
258 <td>[% gist_est %]</td>
261 <th scope="row">Total tax inc. ([% currency %])</th>
262 <td>[% total_rrp_gsti %]</td>
264 <td>[% qty_total %]</td>
265 <td>[% total_est_gsti %]</td>
269 <th scope="row">Total ([% currency %])</th>
270 <td>[% total_rrp_gsti %]</td>
272 <td>[% qty_total %]</td>
273 <td>[% total_est_gsti %]</td>
278 [% FOREACH books_loo IN books_loop %]
279 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
281 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
282 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
284 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
285 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
286 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
287 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
288 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
289 [% IF ( books_loo.suggestionid ) %]
291 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
292 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
294 [% IF ( books_loo.notes ) %]
295 <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>
297 [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Add note</a>]
301 <td class="number">[% books_loo.rrp %]</td>
302 <td class="number">[% books_loo.ecost %]</td>
303 <td class="number">[% books_loo.quantity %]</td>
304 <td class="number">[% books_loo.line_total %]</td>
305 <td>[% books_loo.budget_name %]</td>
307 [% UNLESS ( closedate ) %]
309 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
312 [% IF ( books_loo.left_holds_on_order ) %]
313 <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>
315 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
317 [% IF ( books_loo.can_del_bib ) %]
318 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
320 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
322 [% IF ( books_loo.left_item ) %]
323 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
325 [% IF ( books_loo.left_biblio ) %]
326 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
328 [% IF ( books_loo.left_subscription ) %]
329 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
331 [% IF ( books_loo.left_holds ) %]
332 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
343 <tr><td>Basket empty</td></tr>
346 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
349 [% IF (cancelledorders_loop) %]
350 <div id="cancelledorders">
351 <h2>Cancelled orders</h2>
352 <table id="cancelledorderst">
364 [% FOREACH order IN cancelledorders_loop %]
365 <tr style="color:grey">
368 [% IF ( order.order_received ) %] (rcvd)[% END %]
369 [% IF (order.title) %]
370 [% order.title |html %] by [% order.author %]<br />
372 <em>Deleted bibliographic record, can't find title</em><br />
374 [% IF ( order.notes ) %] [% order.notes %][% END %]
375 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
376 [% IF ( order.issn ) %] - [% order.issn %][% END %]
377 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
378 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
379 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
382 <td><p>[% order.rrp %]</p></td>
383 <td><p>[% order.ecost %]</p></td>
384 <td><p>[% order.quantity %]</p></td>
385 <td><p>[% order.line_total %]</p></td>
386 <td><p>[% order.budget_name %]</p></td>
394 [% UNLESS ( closedate ) %]
395 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
399 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
401 [% IF ( confirm_close ) %]
402 <div id="closebasket_needsconfirmation" class="dialog alert">
404 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
405 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
407 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
408 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
410 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
411 <input type="hidden" value="close" name="op" />
412 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
413 <input type="hidden" name="confirm" value="1" />
414 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
415 <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
416 <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;" />
423 [% INCLUDE 'acquisitions-menu.inc' %]
426 [% INCLUDE 'intranet-bottom.inc' %]