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