Bug 5335 - More granular VAT
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / neworderempty.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; Basket [% basketno %] &rsaquo; [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5
6 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
7 [% INCLUDE 'additem.js.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/additem.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11 actTotal = "";
12
13 function Check(ff) {
14     [% IF (AcqCreateItemOrdering) %]
15         // Remove last itemblock if it is not in items_list
16         var lastitemblock = $("#outeritemblock > div:last");
17         var tobedeleted = true;
18         var listitems = $("#items_list tr");
19         $(listitems).each(function(){
20             if($(this).attr('idblock') == $(lastitemblock).attr('id')){
21                 tobedeleted = false;
22             }
23         });
24         if(tobedeleted){
25             $(lastitemblock).remove();
26         }
27     [% END %]
28
29     var ok=0;
30     var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
31
32     _alertString +="-------------------------------------------------------------------\n\n";
33
34     if ( isNull(ff.title,1)  &&  isNull(ff.entertitle,1)   ){
35         ok=1;
36                     _alertString += "\n- " + _("Title cannot be empty");
37     }
38     
39     if(isNull(ff.budget_id,1)){
40                 ok=1;
41                                         _alertString += "\n- "+ _("You must select a budget");
42     }
43
44     if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
45         ok=1;
46                     _alertString += "\n- " + _("Quantity must be greater than '0'");
47     }
48
49     if (!(isNum(ff.listprice,0))){
50         ok=1;
51                     _alertString += "\n- " + _("Vendor price must be a number");
52     }
53
54     if (!(isNum(ff.total,0))){
55         ok=1;
56                     _alertString += "\n- " + _("Total must be a number");
57     }
58
59     if (totalExceedsBudget(ff.budget_id.value, ff.total.value  )  ) {
60         ok=1;
61         _alertString += "\n- " + _("Order total (") + ff.total.value +
62             _(") exceeds budget available (") + actTotal+")";
63     }
64
65     if ( ff.field_value ) {
66         var empty_item_mandatory = 0;
67         for (i = 0; i < ff.field_value.length; i++) {
68             //alert("i = " + i + " => " + ff.kohafield[i] );
69             if (ff.field_value[i].value.length == 0 && ff.mandatory[i].value == 1) {
70                 empty_item_mandatory++;
71             }
72         }
73         if (empty_item_mandatory > 0) {
74             ok = 1;
75             _alertString +=
76                 "\n- " + empty_item_mandatory + _(" item mandatory fields empty");
77         }
78
79     }
80
81     if (ok) {
82         alert(_alertString);
83         [% IF (AcqCreateItemOrdering) %]
84             if(tobedeleted) {
85                 $(lastitemblock).appendTo('#outeritemblock');
86             }
87         [% END %]
88         return false;
89     }
90
91     [% IF (AcqCreateItemOrdering) %]
92         if(check_additem('[% UniqueItemFields %]') == false) {
93             alert(_('Duplicate values detected. Please correct the errors and resubmit.') );
94             if(tobedeleted) {
95                 $(lastitemblock).appendTo('#outeritemblock');
96             }
97             return false;
98         }
99     [% END %]
100 }
101
102 $(document).ready(function() 
103     {
104         [% IF (AcqCreateItemOrdering) %]
105             cloneItemBlock(0, '[% UniqueItemFields %]');
106         [% END %]
107
108         $("#quantity").change(function() {
109             updateCosts();
110         });
111
112         //We apply the fonction only for modify option
113         [% IF ( quantityrec ) %]
114         $('#quantity').blur(function() 
115         {
116             // if user decreases the quantity
117             if($(this).val() < [% quantityrec %]) 
118             {
119                 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
120                 return true;
121             } 
122             else 
123             {
124                 // if user increases the quantity
125                 alert(_("You can't add a new item, please create a new order line"));
126                 // and we replace the original value
127                 $(this).val([% quantityrec %])
128                 return false;
129             }
130         });
131         [% END %]
132         
133         $('#showallbudgets').click(function() {
134             if ( $('#budget_id .b_inactive').is(":visible") )
135             {
136             $('#budget_id .b_inactive').hide();
137             }
138             else {
139             $('#budget_id .b_inactive').show();
140             }
141         });
142     });
143 //]]>
144 </script>
145 </head>
146 <body id="acq_neworderempty" class="acq" onload="updateCosts()">
147
148 [% INCLUDE 'header.inc' %]
149 [% INCLUDE 'acquisitions-search.inc' %]
150
151 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</div>
152
153 <div id="doc3" class="yui-t2">
154
155 <div id="bd">
156     <div id="yui-main">
157     <div class="yui-b">
158
159 <h2>
160     [% IF ( ordernumber ) %]
161         Modify order line
162     [% ELSE %]
163         New order
164     [% END %]
165 </h2>
166
167 <div class="error" style="display:none"></div>
168
169 [% IF ( basketno ) %]
170     <div id="acqui_basket_summary"  class="yui-g">
171     <fieldset class="rows">
172         <legend>Basket details</legend>
173         <ol>
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 number: </span>[% basketcontractno %]</li>
178             <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
179         [% END %]
180         [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span>  [% authorisedbyname %]</li>[% END %]
181         [% IF ( creationdate ) %]<li><span class="label">Open on:</span>  [% creationdate | $KohaDates %]</li>[% END %]
182         [% IF ( closedate ) %]
183         <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
184         <li><span class="label">Closed on:</span>  [% closedate | $KohaDates %]</li>
185         [% IF ( basketgroups ) %]
186             <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
187                 [% FOREACH basketgroup IN basketgroups %]
188                     [% IF ( basketgroup.default ) %]
189                     <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
190                     [% ELSE %]
191                     <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
192                     [% END %]
193                 [% END %]
194                 </select>
195                 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
196                 <input type="hidden" value="mod_basket" name="op" />
197                 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
198             </li>
199             <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
200         [% END %]
201         </form>
202         [% END %]
203         </ol>
204     </fieldset>
205     </div>
206 [% END %]
207
208 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform" onsubmit="return Check(this);">
209
210 <fieldset class="rows">
211         <legend>
212             Catalog details
213             [% IF ( biblionumber ) %]
214                 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> Edit record</a></span>
215             [% END %]
216         </legend>
217         [% UNLESS ( existing ) %]
218         <input type="hidden" name="existing" value="no" />
219         [% END %]
220         <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
221         <input type="hidden" name="basketno" value="[% basketno %]" />
222         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
223         <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
224         <input type="hidden" name="biblioitemnumber" value="[% biblioitemnumber %]" />
225         <input type="hidden" name="listinc" id="listinc" value="[% listincgst %]" />
226         <input type="hidden" name="applygst" id="applygst" value="[% gstreg %]" />
227         <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst %]" />
228         <input type="hidden" name="suggestionid" value="[% suggestionid %]" />
229         <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
230         <input type="hidden" name="currency_rate" id="currency_rate" value="[% currency_rate %]" />
231
232         <ol><li>
233             [% IF ( biblionumber ) %]
234             <span class="label">Title</span>
235                 <input type="hidden" size="50" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
236             [% ELSE %]
237             <label for="entertitle" class="required">Title: </label>
238                 <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" />
239             [% END %]
240         </li>
241         <li>
242             [% IF ( biblionumber ) %]
243             <span class="label">Author: </span>
244                 <input type="hidden" size="50" name="author" id="author" value="[% author %]" />[% author %]
245             [% ELSE %]
246             <label for="author">Author: </label>
247                 <input type="text" size="50" name="author" id="author" value="[% author %]" />
248             [% END %]
249         </li>
250         <li>
251             [% IF ( biblionumber ) %]
252             <span class="label">Publisher: </span>
253                 <input type="hidden" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
254             [% ELSE %]
255             <label for="publishercode"> Publisher: </label>
256                 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
257             [% END %]
258         </li>
259         <li>
260             [% IF ( biblionumber ) %]
261             <span class="label">Edition: </span>
262                 <input type="hidden" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
263
264             [% ELSE %]
265             <label for="editionstatement">Edition: </label>
266                 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
267             [% END %]
268         </li>
269         <li>
270             [% IF ( biblionumber ) %]
271             <span class="label">Publication year: </span>
272                 <input type="hidden" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
273             [% ELSE %]
274             <label for="publicationyear">Publication year: </label>
275                 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
276             [% END %]
277         </li>
278         <li>
279             [% IF ( biblionumber ) %]
280             <span class="label">ISBN: </span>
281                 <input type="hidden" size="50" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
282             [% ELSE %]
283             <label for="ISBN">ISBN: </label>
284                 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
285             [% END %]
286         </li>
287         [% IF (UNIMARC) %]
288         <li>
289             [% IF ( biblionumber ) %]
290             <span class="label">EAN: </span>
291                 <input type="hidden" size="20" name="ean" id="EAN" value="[% ean %]" />[% ean %]
292             [% ELSE %]
293             <label for="EAN">EAN: </label>
294                 <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
295             [% END %]
296         </li>
297         [% END %]
298         <li>
299             [% IF ( biblionumber ) %]
300             <span class="label">Series: </span>
301                 <input type="hidden" size="50" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
302             [% ELSE %]
303             <label for="series">Series: </label>
304                 <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
305             [% END %]
306         </li>
307         </li>
308             [% UNLESS ( biblionumber ) %]
309             [% IF ( itemtypeloop ) %]
310             <li>
311                 <span class="label">Item type:</span>
312                 <select name="itemtype" style="width:12em;">
313                 [% FOREACH itemtype IN itemtypeloop %]
314                     [% IF ( itemtype.selected ) %]
315                         <option value="[% itemtype.itemtype %]" selected="selected">[% itemtype.description %]</option>
316                     [% ELSE %]
317                         <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
318                     [% END %]
319                 [% END %]
320                 </select>
321             </li>
322             [% END %]
323             [% END %]
324         </ol>
325     </fieldset>
326
327     [% IF ( suggestionid ) %]
328         <fieldset class="rows">
329         <legend>Suggestion</legend>
330         <ol>
331           <li>
332             <span class="label">Suggested by: </span>
333             [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&amp;op=show">suggestion #[% suggestionid %]</a>)
334           </li>
335         </ol>
336         </fieldset>
337     [% END %]
338
339     [% IF (AcqCreateItemOrdering) %]
340
341     <div id="items_list" style="display:none">
342         <p><b>Items list</b></p>
343         <div style="width:100%;overflow:auto;">
344             <table>
345                 <thead>
346                     <tr>
347                         <th>&nbsp;</th>
348                         <th>&nbsp;</th>
349                         <th>Barcode</th>
350                         <th>Home branch</th>
351                         <th>Holding branch</th>
352                         <th>Not for loan</th>
353                         <th>Restricted</th>
354                         <th>Location</th>
355                         <th>Call number</th>
356                         <th>Copy number</th>
357                         <th>Stock number</th>
358                         <th>Collection code</th>
359                         <th>Item type</th>
360                         <th>Materials</th>
361                         <th>Notes</th>
362                     </tr>
363                 </thead>
364                 <tbody>
365                 </tbody>
366             </table>
367         </div>
368     </div>
369
370     <fieldset class="rows" id="itemfieldset">
371         <legend>Item</legend>
372         [% IF ( NoACQframework ) %]
373             <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
374         [% END %]
375
376         <div id="outeritemblock"></div>
377
378     </fieldset>
379     [% END %][%# IF (AcqCreateItemOrdering) %]
380     <fieldset class="rows">
381         <legend>Accounting Details</legend>
382         <ol>
383             <li>
384                 [% IF ( close ) %]
385             <span class="label required">Quantity: </span>
386                     <input type="hidden" size="20" name="quantity" value="[% quantity %]" />[% quantity %]
387                 [% ELSE %]
388                     <label class="required" for="quantity">Quantity: </label>
389                     [% IF (AcqCreateItemOrdering) %]
390                         <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
391                     [% ELSE %]
392                         <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
393                     [% END %]
394                 [% END %]
395                 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
396                 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
397             </li>
398             <li>
399                 [% IF ( close ) %]
400             <span class="label required">Fund: </span>
401                     <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
402                 [% ELSE %]
403                 <label class="required" for="budget_id">Fund: </label>
404                 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
405                         <option value="">Select a budget</option>
406                 [% FOREACH budget_loo IN budget_loop %]
407                     [% IF ( budget_loo.b_sel ) %]
408                         <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
409                     [% ELSE %]
410                         [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
411                         [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" style="display : none;">[% budget_loo.b_txt %]</option>    
412                         [% END %]
413                     [% END %]
414                 [% END %]
415                 </select>
416                 <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all:</label>
417                 <input type="checkbox" id="showallbudgets" />
418                 [% END %]
419             </li>
420                 <li>
421                 [% IF ( close ) %]
422                         <span class="label">Currency: </span>
423                         <input type="hidden" size="10" name="currency" id="currency" value="[% currency %]" />[% currency %]
424                 [% ELSE %]
425                         <label for="currency">Currency:</label>
426                         <select name="currency" id="currency" onchange="updateCosts();">
427                         [% FOREACH loop_currencie IN loop_currencies %]
428                         [% IF ( loop_currencie.selected ) %]<option value="[% loop_currencie.currcode %]" selected="selected">[% loop_currencie.currcode %]</option>[% ELSE %]<option value="[% loop_currencie.currcode %]">[% loop_currencie.currcode %]</option>[% END %][% END %]
429                         </select>
430                 [% END %]
431                 </li>
432             <li>
433                 [% IF ( close ) %]
434                     <span class="label">Vendor price: </span>
435                     <input type="hidden" size="20" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %]
436                 [% ELSE %]
437                 <label for="listprice">Vendor price: </label>
438                     <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" />
439                 [% END %]
440             </li>
441             [% UNLESS ( close ) %]
442             <li>
443                     <label for="uncertainprice">Uncertain price: </label>
444                     [% IF ( uncertainprice ) %]
445                     <input type="checkbox" name="uncertainprice"  id="uncertainprice" value="1" checked="checked" />
446                     [% ELSE %]
447                     <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
448                 [% END %]
449             </li>
450             [% END %]
451             <li>
452                 [% IF ( close ) %]
453                     <span class="label">gstrate: </span>
454                     <input type="hidden" size="20" name="gstrate" id="gstrate" value="[% gstrate %]" />[% gstrate %]%
455                 [% ELSE %]
456                     <label for="gst">gstrate: </label>
457                     <select name="gstrate" id="gstrate" onchange="updateCosts();">
458                     [% FOREACH gst IN gst_values %]
459                       [% IF ( gst.option == gstrate ) %]
460                         <option value="[% gst.option %]" selected="selected">[% gst.option * 100 | format("%.1f") %]%</option>
461                       [% ELSE %]
462                         <option value="[% gst.option %]">[% gst.option * 100 | format("%.1f") %]%</option>
463                       [% END %]
464                     [% END %]
465                     </select>
466                 [% END %]
467             </li>
468             <li>
469                 <label for="discount">Discount: </label>
470                 [% IF ( close ) %]
471                     [% IF ( orderdiscount ) %]
472                         <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
473                     [% ELSE %]
474                         <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% discount_2dp %]%
475                     [% END %]
476                 [% ELSE %]
477                     [% IF ( orderdiscount ) %]
478                         <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />%
479                     [% ELSE %]
480                         <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />%
481                     [% END %]
482                 [% END %]
483             </li>
484             <li>
485                 [% IF ( close ) %]
486                     <span class="label">Replacement cost: </span>
487                     <input type="hidden" size="20" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %]
488                 [% ELSE %]
489                     <label for="rrp">Replacement cost: </label>
490                     <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %])
491                 [% END %]
492             </li>
493             <li>
494                 [% IF ( close ) %]
495                     <label for="ecost">Budgeted cost: </label>
496                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly"  />
497                 [% ELSE %]
498                     <label for="ecost">Budgeted cost: </label>
499                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" />
500                 [% END %]
501             </li>
502             <li>
503                 [% IF ( close ) %]
504                     <label for="total">Total: </label>
505                     <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" />
506                 [% ELSE %]
507                     <label for="total">Total: </label>
508                     <input type="text" id="total" size="20" name="total" value="[% total %]" /> (budgeted cost * quantity)
509                 [% END %]
510             </li>
511             <li>
512                 [% IF ( close ) %]
513                     <label for="unitprice">Actual cost: </label>
514                     <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" />
515                 [% ELSE %]
516                     <label for="unitprice">Actual cost: </label>
517                     <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" />
518                 [% END %]
519             </li>
520             <li>
521                 <label for="notes">Notes: </label>
522                 <textarea id="notes" cols="30" rows="3" name="notes" >[% notes %]</textarea>
523             </li>
524             <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
525                 <label for="sort1">Statistic 1: </label>
526                 <span id="sort1_zone">
527                 [% IF CGIsort1 %]
528                     <select id="sort1" size="1" name="sort1">
529                     [% FOREACH sort_opt IN CGIsort1 %]
530                        [% IF sort_opt.default %]
531                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
532                         [% ELSE %]
533                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
534                         [% END %]
535                     [% END %]
536                     </select>
537                 [% ELSE %]
538                     <input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
539                 [% END %]
540                 </span>
541             </li>
542             <li>
543                 <label for="sort2">Statistic 2: </label>
544                 <span id="sort2_zone">
545                 [% IF CGIsort2 %]
546                     <select id="sort2" size="1" name="sort2">
547                     [% FOREACH sort_opt IN CGIsort2 %]
548                        [% IF sort_opt.default %]
549                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
550                         [% ELSE %]
551                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
552                         [% END %]
553                     [% END %]
554                     </select>
555                 [% ELSE %]
556                     <input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
557                 [% END %]
558                 </span>
559             </li>
560 </ol>
561     </fieldset>
562     <fieldset class="action">
563         <input type="submit" value="Save" />
564         [% IF (suggestionid) %]
565             <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Cancel</a>
566         [% ELSE %]
567             <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
568         [% END %]
569     </fieldset>
570 </form>
571 </div>
572 </div>
573 <div class="yui-b">
574 [% INCLUDE 'acquisitions-menu.inc' %]
575 </div>
576 </div>
577 [% INCLUDE 'intranet-bottom.inc' %]