Adding a javascript function to check the validation of a record with a budget.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / neworderempty.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Basket <!-- TMPL_VAR NAME="basketno" --> &rsaquo; <!-- TMPL_IF name="ordernumber" -->Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->)<!-- TMPL_ELSE -->New order<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
6 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/additem.js"></script>
7 <script type="text/javascript">
8 //<![CDATA[
9 actTotal = "";
10
11 function Check(ff) {
12     var ok=0;
13     var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
14
15     _alertString +="-------------------------------------------------------------------\n\n";
16
17     if ( isNull(ff.title,1)  &&  isNull(ff.entertitle,1)   ){
18         ok=1;
19                     _alertString += "\n- " + _("Title cannot be empty");
20     }
21     
22     if(isNull(ff.budget_id,1)){
23                 ok=1;
24                                         _alertString += "\n- "+ _("You must select a budget");
25     }
26
27     if (!(isNum(ff.quantity,0))){
28         ok=1;
29                     _alertString += "\n- " + _("Quantity must be greater than '0'");
30     }
31
32     if (!(isNum(ff.listprice,0))){
33         ok=1;
34                     _alertString += "\n- " + _("Vendor price must be a number");
35     }
36
37     if (!(isNum(ff.total,0))){
38         ok=1;
39                     _alertString += "\n- " + _("Total must be a number");
40     }
41
42     if (totalExceedsBudget(ff.budget_id.value, ff.total.value  )  ) {
43         ok=1;
44         _alertString += "\n- " + _("Order total (") + ff.total.value +
45             _(") exceeds budget available (") + actTotal+")";
46     }
47
48     if ( ff.field_value ) {
49         var empty_item_mandatory = 0;
50         for (i = 0; i < ff.field_value.length; i++) {
51             //alert("i = " + i + " => " + ff.kohafield[i] );
52             if (ff.field_value[i].value.length == 0 && ff.mandatory[i].value == 1) {
53                 empty_item_mandatory++;
54             }
55         }
56         if (empty_item_mandatory > 0) {
57             ok = 1;
58             _alertString +=
59                 "\n- " + empty_item_mandatory + _(" item mandatory fields empty");
60         }
61     }
62
63 if (ok) {
64         alert(_alertString);
65     return false;
66     }
67
68 ff.submit();
69
70 }
71
72
73 //]]>
74 </script>
75 </head>
76 <body>
77
78 <!-- TMPL_INCLUDE NAME="header.inc" -->
79 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
80
81 <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/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">Basket <!-- TMPL_VAR NAME="basketno" --></a> &rsaquo; <!-- TMPL_IF name="ordernumber" -->Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->)<!-- TMPL_ELSE -->New order<!-- /TMPL_IF --></div>
82
83 <div id="doc3" class="yui-t2">
84
85 <div id="bd">
86     <div id="yui-main">
87     <div class="yui-b">
88
89 <h2>
90     <!-- TMPL_IF name="ordernumber" -->
91         Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->)
92     <!-- TMPL_ELSE -->
93         New order
94     <!-- /TMPL_IF -->
95         <!-- TMPL_IF name="suggestionid" -->(defined from suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
96 </h2>
97
98 <!-- TMPL_IF name="basketno" -->
99     <div id="acqui_basket_summary"  class="yui-g">
100         <fieldset class="rows">
101         <legend>Basket details</legend>
102                 <ol>
103         <!-- TMPL_IF NAME="basketnote" --><li><span class="label">Internal note:</span> <!-- TMPL_VAR NAME="basketnote" --></li><!-- /TMPL_IF -->
104         <!-- TMPL_IF NAME="basketbooksellernote" --><li><span class="label">Vendor note:</span> <!-- TMPL_VAR NAME="basketbooksellernote" --></li><!-- /TMPL_IF -->
105         <!-- TMPL_IF NAME="basketcontractno" -->
106             <li><span class="label">Contract number: </span><!-- TMPL_VAR NAME="basketcontractno" --></li>
107             <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->"><!-- TMPL_VAR NAME="basketcontractname" --></a></li>
108         <!-- /TMPL_IF -->
109         <!-- TMPL_IF NAME="authorisedbyname" --><li><span class="label">Managed by:</span>  <!-- TMPL_VAR NAME="authorisedbyname" --></li><!-- /TMPL_IF -->
110         <!-- TMPL_IF NAME="creationdate" --><li><span class="label">Open on:</span>  <!-- TMPL_VAR NAME="creationdate" --></li><!-- /TMPL_IF -->
111         <!-- TMPL_IF name="closedate" -->
112         <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
113         <li><span class="label">Closed on:</span>  <!-- TMPL_VAR name="closedate" --></li>
114         <!-- TMPL_IF name="basketgroups" -->
115             <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
116                 <!-- TMPL_LOOP name="basketgroups" -->
117                     <!-- TMPL_IF name="default" -->
118                     <option value="<!-- TMPL_VAR name="id" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
119                     <!-- TMPL_ELSE -->
120                     <option value="<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR name="name" --></option>
121                     <!-- /TMPL_IF -->
122                 <!-- /TMPL_LOOP -->
123                 </select>
124                 <input type="hidden" id="basketno" value="<!-- TMPL_VAR name="basketno" -->" name="basketno" />
125                 <input type="hidden" value="mod_basket" name="op" />
126                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
127             </li>
128                 <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
129         </form>
130         <!-- /TMPL_IF -->
131         <!-- /TMPL_IF -->
132                         </ol>
133 </fieldset>
134     </div>
135 <!-- /TMPL_IF -->
136
137 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform">
138
139 <fieldset class="rows">
140         <legend>Catalog details</legend>
141         <!-- TMPL_UNLESS name="existing" -->
142         <input type="hidden" name="existing" value="no" />
143         <!-- /TMPL_UNLESS -->
144         <input type="hidden" name="ordernumber" value="<!-- TMPL_VAR NAME="ordernumber" -->" />
145         <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
146         <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
147         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
148         <input type="hidden" name="biblioitemnumber" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
149         <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" />
150         <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->" />
151 <!--        <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->" />-->
152         <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->" />
153         <input type="hidden" name="invoiceincgst" value="<!-- TMPL_VAR NAME="invoiceincgst" -->" />
154         <input type="hidden" name="gstrate" value="<!-- TMPL_VAR NAME="gstrate" -->" />
155         <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->" />
156         <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
157
158         <!-- TMPL_LOOP NAME="loop_currencies" -->
159             <input type="hidden" id="<!-- TMPL_VAR NAME="currcode" -->"  name="<!-- TMPL_VAR NAME="currcode" -->" value="<!-- TMPL_VAR NAME="rate" -->" />
160         <!-- /TMPL_LOOP -->
161         <ol><li>
162             <!-- TMPL_IF name="biblionumber" -->
163             <span class="label">Title</span>
164                 <input type="hidden" size="50" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="HTML" -->" /> <span class="title"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></span>
165             <!-- TMPL_ELSE -->
166             <label for="entertitle" class="required">Title: </label>
167                 <input type="text" id="entertitle" size="50" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="html" -->" />
168             <!-- /TMPL_IF -->
169         </li>
170         <li>
171             <!-- TMPL_IF name="biblionumber" -->
172             <span class="label">Author: </span>
173                 <input type="hidden" size="50" name="author" id="author" value="<!-- TMPL_VAR NAME="author" -->" /><!-- TMPL_VAR NAME="author" -->
174             <!-- TMPL_ELSE -->
175             <label for="author">Author: </label>
176                 <input type="text" size="50" name="author" id="author" value="<!-- TMPL_VAR NAME="author" -->" />
177             <!-- /TMPL_IF -->
178         </li>
179         <li>
180             <!-- TMPL_IF name="biblionumber" -->
181             <span class="label">Publisher: </span>
182                 <input type="hidden" size="50" name="publishercode" id="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" /><!-- TMPL_VAR NAME="publishercode" -->
183             <!-- TMPL_ELSE -->
184             <label for="publishercode"> Publisher: </label>
185                 <input type="text" size="50" name="publishercode" id="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" />
186             <!-- /TMPL_IF -->
187         </li>
188         <li>
189             <!-- TMPL_IF name="biblionumber" -->
190             <span class="label">Publication year: </span>
191                 <input type="hidden" size="10" name="publicationyear" id="publicationyear" value="<!-- TMPL_VAR NAME="publicationyear" -->" /><!-- TMPL_VAR NAME="publicationyear" -->
192             <!-- TMPL_ELSE -->
193             <label for="publicationyear">Publication year: </label>
194                 <input type="text" size="10" name="publicationyear" id="publicationyear" value="<!-- TMPL_VAR NAME="publicationyear" -->" />
195             <!-- /TMPL_IF -->
196         </li>
197         <li>
198             <!-- TMPL_IF name="biblionumber" -->
199             <span class="label">ISBN: </span>
200                 <input type="hidden" size="50" name="isbn" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /><!-- TMPL_VAR NAME="isbn" -->
201             <!-- TMPL_ELSE -->
202             <label for="ISBN">ISBN: </label>
203                 <input type="text" size="50" name="isbn" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" />
204             <!-- /TMPL_IF -->
205         </li>
206         <li>
207             <!-- TMPL_IF name="biblionumber" -->
208             <span class="label">Series: </span>
209                 <input type="hidden" size="50" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /><!-- TMPL_VAR NAME="seriestitle" -->
210             <!-- TMPL_ELSE -->
211             <label for="series">Series: </label>
212                 <input type="text" size="50" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" />
213             <!-- /TMPL_IF -->
214         </li>
215         </ol>
216     </fieldset>
217     <!-- TMPL_IF name="items" -->
218     <fieldset class="rows">
219         <legend>Item</legend>
220         <!-- TMPL_IF name="NoACQframework" -->
221             <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
222         <!-- /TMPL_IF -->
223
224         <!-- TMPL_LOOP NAME="items" -->
225         <div id="outeritemblock">
226         <div id="itemblock">
227             <ol><!-- TMPL_LOOP NAME="iteminformation" --><li>
228                 <div class="subfield_line" style="<!-- TMPL_VAR NAME='hidden' -->;" id="subfield<!-- TMPL_VAR NAME='serialid' --><!-- TMPL_VAR NAME='countitems' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->">
229
230                     <label><!-- TMPL_VAR NAME="subfield" --> - <!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF --><!-- TMPL_VAR NAME="marc_lib" --><!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF --></label>
231                     <!-- TMPL_VAR NAME="marc_value" -->
232                     <input type="hidden" name="itemid" value="1" />
233                     <input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
234                     <input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
235                     <input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
236                     <input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
237                     <!-- TMPL_IF NAME="ITEM_SUBFIELDS_ARE_NOT_REPEATABLE" -->
238                         <span class="buttonPlus" onclick="CloneSubfield('subfield<!-- TMPL_VAR NAME='serialid' --><!-- TMPL_VAR NAME='countitems' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->')">+</span>
239                     <!-- /TMPL_IF -->
240
241                 </div></li>
242             <!-- /TMPL_LOOP-->
243             </ol>
244             <a style="cursor: pointer; color: grey; font-size: 180%;" onclick="cloneItemBlock('itemblock<!-- TMPL_VAR name="itemBlockIndex" -->')">+</a>
245             <a style="display:none; cursor: pointer; color: grey; font-size: 180%;" onclick="deleteItemBlock('itemblock<!-- TMPL_VAR name="itemBlockIndex" -->')">-</a>
246         </div><!-- /iteminformation -->
247         </div>
248
249         <!--/TMPL_LOOP--> <!-- /items -->
250     </fieldset>
251     <!-- /TMPL_IF --> <!-- items -->
252     <fieldset class="rows">
253         <legend>Accounting Details</legend>
254         <ol>
255             <li>
256                 <!-- TMPL_IF name="close" -->
257             <span class="label required">Quantity: </span>
258                     <input type="hidden" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" /><!-- TMPL_VAR NAME="quantity" -->
259                 <!-- TMPL_ELSE -->
260                 <label class="required" for="quantity">Quantity: </label>
261                     <!-- TMPL_IF name="items" -->
262                         <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" onchange="calcNeworderTotal();" />
263                     <!-- TMPL_ELSE -->
264                         <input type="text" size="20" id="quantity" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
265                     <!-- /TMPL_IF -->
266                 <!--/TMPL_IF-->
267                 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
268                 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
269             </li>
270             <li>
271                 <!-- TMPL_IF name="close" -->
272             <span class="label">Fund: </span>
273                     <input type="hidden" size="20" name="budget_id" id="budget_id" value="<!-- TMPL_VAR NAME="budget_id" -->" /><!-- TMPL_VAR NAME="Budget_name" -->
274                 <!-- TMPL_ELSE -->
275                 <label for="budget_id">Fund: </label>
276                 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
277                 <!-- TMPL_LOOP NAME="budget_loop" -->
278                     <!-- TMPL_IF NAME="b_sel" -->
279                         <option value="<!-- TMPL_VAR NAME='b_id' -->" selected="selected"><!-- TMPL_VAR NAME="b_txt" --></option>
280                     <!-- TMPL_ELSE -->
281                         <option value="<!-- TMPL_VAR NAME='b_id' -->"><!-- TMPL_VAR NAME="b_txt" --></option>
282                     <!-- /TMPL_IF -->
283                 <!-- /TMPL_LOOP -->
284                 </select>
285                 <!--/TMPL_IF-->
286             </li>
287                 <li>
288                 <!-- TMPL_IF name="close" -->
289                         <span class="label">Currency: </span>
290                         <input type="hidden" size="10" name="currency" id="currency" value="<!-- TMPL_VAR NAME="currency" -->" /><!-- TMPL_VAR NAME="currency" -->
291                 <!-- TMPL_ELSE -->
292                         <label for="currency">Currency:</label>
293                         <select name="currency" id="currency" onchange="calcNeworderTotal();">
294                         <!-- TMPL_LOOP name="loop_currencies" -->
295                         <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="currcode" -->" selected="selected"><!-- TMPL_VAR name="currcode" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="currcode" -->"><!-- TMPL_VAR name="currcode" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP -->
296                         </select>
297                 <!-- /TMPL_IF-->
298                 </li>
299             <li>
300                 <!-- TMPL_IF name="close" -->
301             <span class="label">Vendor price: </span>
302                     <input type="hidden" size="20" name="listprice" id="listprice" value="<!-- TMPL_VAR NAME="listprice" -->" /><!-- TMPL_VAR NAME="listprice" -->
303                 <!-- TMPL_ELSE -->
304                 <label for="listprice">Vendor price: </label>
305                     <input type="text" size="20" name="listprice" id="listprice" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="calcNeworderTotal()" />
306                 <!--/TMPL_IF-->
307             </li>
308             <!-- TMPL_UNLESS NAME="close" -->
309             <li>
310                     <label for="uncertainprice">Uncertain price: </label>
311                     <!--TMPL_IF NAME="uncertainprice" -->
312                     <input type="checkbox" name="uncertainprice"  id="uncertainprice" value="1" checked="checked" />
313                     <!-- TMPL_ELSE -->
314                     <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
315                 <!--/TMPL_IF-->
316             </li>
317             <!-- /TMPL_UNLESS -->
318                         <li>
319                 <!-- TMPL_IF name="close" -->
320             <span class="label">Replacement cost: </span>
321                     <input type="hidden" size="20" name="rrp" id="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" /><!-- TMPL_VAR NAME="rrp" -->
322                 <!-- TMPL_ELSE -->
323                 <label for="rrp">Replacement cost: </label>
324                     <input type="text" size="20" name="rrp" id="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" /> (adjusted for <!-- TMPL_VAR NAME="cur_active" -->)
325                 <!--/TMPL_IF-->
326             </li>
327             <li>
328                 <!-- TMPL_IF name="close" -->
329             <label for="ecost">Budgeted cost: </label>
330                     <input type="text" size="20" name="ecost" id="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" readonly="readonly"  />
331                 <!-- TMPL_ELSE -->
332                 <label for="ecost">Budgeted cost: </label>
333                     <input type="text" size="20" name="ecost" id="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" />
334                 <!--/TMPL_IF-->
335                 <!-- TMPL_IF name="discount_2dp" -->  (adjusted for <!-- TMPL_VAR name="discount_2dp" -->% discount)  <!--/TMPL_IF-->
336
337             </li>
338             <!-- TMPL_IF NAME="GST"-->
339             <li>
340                 <!-- TMPL_IF name="close" -->
341             <label for="GST">Budgeted GST: </label>
342                 <input type="text" id="" size="20" name="gst" value="" id="GST" readonly="readonly" />
343                 <!-- TMPL_ELSE -->
344                 <label for="GST">Budgeted GST: </label>
345                 <input type="text" size="20" name="gst" id="GST" value="" />
346                 <!--/TMPL_IF-->
347             </li>
348             <!-- /TMPL_IF -->
349             <li>
350                 <!-- TMPL_IF name="close" -->
351             <label for="total">Total: </label>
352                 <input type="text" id="total" size="20" name="total" value="<!-- TMPL_VAR name="total" -->" readonly="readonly" />
353                 <!-- TMPL_ELSE -->
354                 <label for="total">Total: </label>
355                 <input type="text" id="total" size="20" name="total" value="<!-- TMPL_VAR name="total" -->" /> (budgeted cost * quantity)
356                 <!--/TMPL_IF-->
357             </li>
358             <li>
359                 <!-- TMPL_IF name="close" -->
360             <label for="cost">Actual cost: </label>
361                 <input type="text" id="cost" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->" readonly="readonly" />
362                 <!-- TMPL_ELSE -->
363                 <label for="cost">Actual cost: </label>
364                 <input type="text" id="cost" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->" />
365                 <!--/TMPL_IF-->
366             </li>
367             <li>
368                 <label for="notes">Notes: </label>
369                 <textarea id="notes" cols="30" rows="3" name="notes"><!-- TMPL_VAR NAME="notes" --></textarea>
370             </li>
371             <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
372                 <label for="sort1">Planning value1: </label>
373
374                 <!-- TMPL_IF Name="CGIsort1" -->
375                     <!-- TMPL_VAR Name="CGIsort1" -->
376                 <!-- TMPL_ELSE -->
377
378                     <input type="text" id="sort1" size="20" name="sort1" value="<!-- TMPL_VAR NAME="sort1" -->" />
379                 <!--/TMPL_IF -->
380             </li>
381             <li>
382                 <label for="sort2">Planning value2: </label>
383
384                 <!-- TMPL_IF Name="CGIsort2" -->
385                     <!-- TMPL_VAR Name="CGIsort2" -->
386                 <!-- TMPL_ELSE -->
387                     <input type="text" id="sort2" size="20" name="sort2" value="<!-- TMPL_VAR NAME="sort2" -->" />
388                 <!--/TMPL_IF -->
389             </li>
390 </ol>
391     </fieldset>
392     <fieldset class="action">
393         <input type="button" value="Save" onclick="Check(this.form)" /> <!-- TMPL_IF name="suggestionid" --><a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">Cancel</a><!-- TMPL_ELSE --><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">Cancel</a><!-- /TMPL_IF -->
394     </fieldset>
395 </form>
396 </div>
397 </div>
398 <div class="yui-b">
399 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
400 </div>
401 </div>
402 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->