1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% UNLESS ( closedate ) %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript">
8 $(document).ready(function() {
9 $("#orders").tablesorter({
16 function confirm_close() {
17 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
19 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
22 function confirm_deletion() {
23 var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
25 window.location = "[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]";
28 function confirm_delete_item(ordernumber, biblionumber) {
29 var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
31 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
35 function confirm_delete_biblio(ordernumber, biblionumber) {
36 var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
38 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
45 <script type="text/javascript">
47 $(document).ready(function(){
48 $("#basketgroupid").change(function(){
49 if($(this).val() == "new"){
50 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
56 [% UNLESS ( grouped ) %]
57 <script type="text/javascript">
59 function confirm_reopen(skip) {
60 var is_confirmed = skip || confirm(_('Are you sure you want to reopen this basket?'));
62 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
69 <style type="text/css">
70 .sortmsg {font-size: 80%;}
74 [% INCLUDE 'header.inc' %]
75 [% INCLUDE 'acquisitions-search.inc' %]
78 <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?supplierid=[% booksellerid %]">[% name|html %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</div>
80 <div id="doc3" class="yui-t2">
85 [% UNLESS ( confirm_close ) %]
86 [% UNLESS ( selectbasketg ) %]
87 [% UNLESS ( closedate ) %]
89 <script type="text/javascript">
91 // prepare DOM for YUI Toolbar
92 $(document).ready(function() {
95 // YUI Toolbar Functions
96 function yuiToolbar() {
97 [% IF ( unclosable ) %]
98 new YAHOO.widget.Button("closebutton", {disabled:true});
99 [% ELSIF ( uncertainprices ) %]
100 new YAHOO.widget.Button("uncertpricesbutton");
102 new YAHOO.widget.Button("closebutton");
104 new YAHOO.widget.Button("basketheadbutton");
105 new YAHOO.widget.Button("exportbutton");
106 new YAHOO.widget.Button("delbasketbutton");
111 <ul id="toolbar-list" class="toolbar">
112 <li><a href="basketheader.pl?basketno=[% basketno %]&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
113 <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
114 [% IF ( unclosable ) %]
115 [% ELSIF ( uncertainprices ) %]
116 <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
118 <li><a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="closebutton">Close this basket</a></li>
120 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
125 [% UNLESS ( grouped ) %]
127 <script type="text/javascript">
129 // prepare DOM for YUI Toolbar
130 $(document).ready(function() {
133 // YUI Toolbar Functions
134 function yuiToolbar() {
135 new YAHOO.widget.Button("reopenbutton");
139 <ul id="toolbar-list" class="toolbar">
140 <li><a href="javascript:confirm_reopen([% skip_confirm_reopen %]);" class="button" id="reopenbutton">Reopen this basket</a></li>
147 [% IF ( NO_BOOKSELLER ) %]
148 <h2>Vendor not found</h2>
150 [% IF ( delete_confirmed ) %]
151 <h3>Basket deleted</h3>
152 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
154 <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?supplierid=[% booksellerid %]">[% name|html %]</a></h1>
155 [% IF ( delete_confirm ) %]
157 <span class="yui-button yui-link-button">
158 <em class="first-child">
159 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
162 <span class="yui-button yui-link-button">
163 <em class="first-child">
164 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
169 [% IF ( basketno ) %]
170 <div id="acqui_basket_summary" class="yui-g">
172 <div class="yui-u first">
174 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
175 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
176 [% IF ( basketcontractno ) %]
177 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
179 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
180 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate %]</li>[% END %]
181 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate %]</li>[% END %]
185 [% IF ( closedate ) %]
187 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
189 <p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
190 <p><select id="basketgroupid" name="basketgroupid">
191 <option value="new">Add new group</option>
192 [% FOREACH basketgroup IN basketgroups %]
193 [% IF ( basketgroup.default ) %]
194 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
196 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
201 <p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
202 <input type="hidden" value="mod_basket" name="op" />
203 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
204 <input type="submit" value="Change basket group" /></p>
213 [% UNLESS ( delete_confirm ) %]
214 <div id="acqui_basket_content" class="yui-g">
215 <h2>Order Details</h2>
216 [% IF ( books_loop ) %]
227 [% UNLESS ( closedate ) %]
237 <th scope="row">Total Tax Exc.</th>
238 <td>[% total_rrp_gste %]</td>
240 <td>[% qty_total %]</td>
241 <td>[% total_est_gste %]</td>
243 [% IF ( closedate ) %]
244 <td colspan="1" rowspan="3"> </td>
246 <td colspan="3" rowspan="3"> </td>
251 <th scope="row">Tax ([% gist_rate %])</th>
252 <td>[% gist_rrp %]</td>
255 <td>[% gist_est %]</td>
258 <th scope="row">Total Tax Inc. ([% currency %])</th>
259 <td>[% total_rrp_gsti %]</td>
261 <td>[% qty_total %]</td>
262 <td>[% total_est_gsti %]</td>
266 <th scope="row">Total ([% currency %])</th>
267 <td>[% total_rrp_gsti %]</td>
269 <td>[% qty_total %]</td>
270 <td>[% total_est_gsti %]</td>
275 [% FOREACH books_loo IN books_loop %]
276 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
278 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
279 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
280 [% IF ( books_loo.notes ) %] [% books_loo.notes %][% END %]
281 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
282 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
283 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
284 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
287 <td class="number">[% books_loo.rrp %]</td>
288 <td class="number">[% books_loo.ecost %]</td>
289 <td class="number">[% books_loo.quantity %]</td>
290 <td class="number">[% books_loo.line_total %]</td>
291 <td>[% books_loo.budget_name %]</td>
293 [% UNLESS ( closedate ) %]
295 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
298 [% IF ( books_loo.left_holds_on_order ) %]
299 <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>
301 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
303 [% IF ( books_loo.can_del_bib ) %]
304 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
306 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
308 [% IF ( books_loo.left_item ) %]
309 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
311 [% IF ( books_loo.left_biblio ) %]
312 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
314 [% IF ( books_loo.left_subscription ) %]
315 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
317 [% IF ( books_loo.left_holds ) %]
318 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
329 <tr><td>Basket empty</td></tr>
332 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
336 [% UNLESS ( closedate ) %]
337 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
341 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
343 [% IF ( confirm_close ) %]
344 <div id="closebasket_needsconfirmation" class="dialog alert">
346 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
347 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
349 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
350 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
352 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
353 <input type="hidden" value="close" name="op" />
354 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
355 <input type="hidden" name="confirm" value="1" />
356 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
357 <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
358 <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;" />
365 [% INCLUDE 'acquisitions-menu.inc' %]
368 [% INCLUDE 'intranet-bottom.inc' %]