1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for [% name %]</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({
18 <script type="text/javascript">
20 function confirm_close() {
21 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
23 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
28 <script type="text/javascript">
30 function confirm_deletion() {
31 var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
33 window.location = "[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]";
36 function confirm_delete_item(ordernumber, biblionumber) {
37 var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
39 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
46 [% UNLESS ( grouped ) %]
47 <script type="text/javascript">
49 function confirm_reopen(skip) {
50 var is_confirmed = skip || confirm(_('Are you sure you want to reopen this basket?'));
52 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
59 <style type="text/css">
60 .sortmsg {font-size: 80%;}
64 [% INCLUDE 'header.inc' %]
65 [% INCLUDE 'acquisitions-search.inc' %]
68 <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 %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for [% name %]</div>
70 <div id="doc3" class="yui-t2">
75 [% UNLESS ( confirm_close ) %]
76 [% UNLESS ( selectbasketg ) %]
77 [% UNLESS ( closedate ) %]
79 <script type="text/javascript">
81 // prepare DOM for YUI Toolbar
82 $(document).ready(function() {
85 // YUI Toolbar Functions
86 function yuiToolbar() {
87 [% IF ( unclosable ) %]
88 new YAHOO.widget.Button("closebutton", {disabled:true});
89 [% ELSIF ( uncertainprices ) %]
90 new YAHOO.widget.Button("uncertpricesbutton");
92 new YAHOO.widget.Button("closebutton");
94 new YAHOO.widget.Button("basketheadbutton");
95 new YAHOO.widget.Button("exportbutton");
96 new YAHOO.widget.Button("delbasketbutton");
101 <ul id="toolbar-list" class="toolbar">
102 <li><a href="basketheader.pl?basketno=[% basketno %]&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
103 <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
104 [% IF ( unclosable ) %]
105 [% ELSIF ( uncertainprices ) %]
106 <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
108 <li><a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="closebutton">Close this basket</a></li>
110 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
115 [% UNLESS ( grouped ) %]
117 <script type="text/javascript">
119 // prepare DOM for YUI Toolbar
120 $(document).ready(function() {
123 // YUI Toolbar Functions
124 function yuiToolbar() {
125 new YAHOO.widget.Button("reopenbutton");
129 <ul id="toolbar-list" class="toolbar">
130 <li><a href="javascript:confirm_reopen([% skip_confirm_reopen %]);" class="button" id="reopenbutton">Reopen this basket</a></li>
137 [% IF ( NO_BOOKSELLER ) %]
138 <h2>Vendor not found</h2>
140 [% IF ( delete_confirmed ) %]
141 <h3>Basket deleted</h3>
142 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
144 <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for <a href="supplier.pl?supplierid=[% booksellerid %]">[% name %]</a></h1>
145 [% IF ( delete_confirm ) %]
147 <span class="yui-button yui-link-button">
148 <em class="first-child">
149 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
152 <span class="yui-button yui-link-button">
153 <em class="first-child">
154 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
159 [% IF ( basketno ) %]
160 <div id="acqui_basket_summary" class="yui-g">
161 <h2>Basket details</h2>
162 [% IF ( basketnote ) %]<p>Internal note: [% basketnote %]</p>[% END %]
163 [% IF ( basketbooksellernote ) %]<p>Vendor note: [% basketbooksellernote %]</p>[% END %]
164 [% IF ( basketcontractno ) %]
165 <p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></p>
167 [% IF ( authorisedbyname ) %]<p>Managed by: [% authorisedbyname %]</p>[% END %]
168 [% IF ( creationdate ) %]<p>Opened on: [% creationdate %]</p>[% END %]
169 [% IF ( closedate ) %]
170 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
171 <p>Closed on: [% closedate %]</p>
172 [% IF ( basketgroups ) %]
173 <p> Basket group: <select id="basketgroupid" name="basketgroupid">
174 [% FOREACH basketgroup IN basketgroups %]
175 [% IF ( basketgroup.default ) %]
176 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
178 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
182 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
183 <input type="hidden" value="mod_basket" name="op" />
184 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
185 <input type="submit" value="Change basket group" />
189 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroups %]&basketgroupid=[% id %]">[% name %]</a>
195 [% UNLESS ( delete_confirm ) %]
196 <div id="acqui_basket_content">
197 <h2>Order Details</h2>
198 [% IF ( books_loop ) %]
209 [% UNLESS ( closedate ) %]
219 <th>Total Tax Exc.</th>
220 <th>[% total_rrp_gste %]</th>
222 <th>[% qty_total %]</th>
223 <th>[% total_est_gste %]</th>
225 [% IF ( closedate ) %]
226 <td colspan="1" rowspan="3"> </td>
228 <td colspan="3" rowspan="3"> </td>
233 <th>Tax ([% gist_rate %])</th>
234 <th>[% gist_rrp %]</th>
237 <th>[% gist_est %]</th>
240 <th>Total Tax Inc. ([% currency %])</th>
241 <th>[% total_rrp_gsti %]</th>
243 <th>[% qty_total %]</th>
244 <th>[% total_est_gsti %]</th>
248 <th>Total ([% currency %])</th>
249 <th>[% total_rrp_gsti %]</th>
251 <th>[% qty_total %]</th>
252 <th>[% total_est_gsti %]</th>
257 [% FOREACH books_loo IN books_loop %]
258 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
260 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
261 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
262 [% IF ( books_loo.notes ) %] [% books_loo.notes %][% END %]
263 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
264 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
265 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
266 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
269 <td class="number">[% books_loo.rrp %]</td>
270 <td class="number">[% books_loo.ecost %]</td>
271 <td class="number">[% books_loo.quantity %]</td>
272 <td class="number">[% books_loo.line_total %]</td>
273 <td>[% books_loo.budget_name %]</td>
275 [% UNLESS ( closedate ) %]
277 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
280 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete</a>
290 <tr><td>Basket empty</td></tr>
293 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
297 [% UNLESS ( closedate ) %]
298 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
302 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
304 [% IF ( confirm_close ) %]
305 <div id="closebasket_needsconfirmation" class="dialog alert">
307 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
308 <h1>Are you sure you want to close basket [% basketname %]?</h1>
310 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
311 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
313 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
314 <input type="hidden" value="close" name="op" />
315 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
316 <input type="hidden" name="confirm" value="1" />
317 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
318 <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
319 <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;" />
329 [% INCLUDE 'acquisitions-menu.inc' %]
332 [% INCLUDE 'intranet-bottom.inc' %]