7 [% USE AuthorisedValues %]
9 [% PROCESS 'i18n.inc' %]
10 [% PROCESS 'patron-search.inc' %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>[% FILTER collapse %]
13 [% IF ( ordernumber ) %]
14 [% tx("Modify order details (line #{ordernumber})", { ordernumber = ordernumber }) | html %]
16 [% t("New order") | html %]
18 [% tx("Basket {basketnumber}", { basketnumber = basketno }) | html %] ›
19 [% t("Acquisitions") | html %] ›
20 [% t("Koha") | html %]
22 [% INCLUDE 'doc-head-close.inc' %]
26 #itemfieldset span.label {
36 #itemfieldset .input_marceditor {
40 #itemfieldset .input_marceditor.flatpickr-input {
44 #itemfieldset .subfield_line {
50 [% Asset.js("js/acquisitions-menu.js") | $raw %]
51 [% Asset.js("js/acq.js") | $raw %]
52 [% Asset.js("js/additem.js") | $raw %]
53 [% Asset.js("js/cataloging.js") | $raw %]
54 [% INCLUDE 'calendar.inc' %]
55 [% INCLUDE 'select2.inc' %]
60 [% IF (AcqCreateItemOrdering) %]
61 // Remove last itemblock if it is not in items_list
62 var lastitemblock = $("#outeritemblock > div:last");
63 var tobedeleted = true;
64 var listitems = $("#items_list tr");
65 $(listitems).each(function(){
66 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
71 $(lastitemblock).remove();
76 var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
78 _alertString +="-------------------------------------------------------------------\n\n";
80 if(isNull(ff.budget_id,1)){
82 _alertString += "\n- "+ _("You must select a fund");
85 if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
87 _alertString += "\n- " + _("Quantity must be greater than '0'");
90 if (!(isNum(ff.listprice,0))){
92 _alertString += "\n- " + _("Vendor price must be a number");
95 if (!(isNum(ff.total,0))){
97 _alertString += "\n- " + _("Total must be a number");
100 if (totalExceedsBudget(ff.budget_id.value, ff.total.value ) ) {
102 _alertString += "\n- " + _("Order total (%s) exceeds budget available (%s)").format(ff.total.value, actTotal);
105 if ( ff.field_value ) {
106 var empty_item_mandatory = CheckMandatorySubfields(ff);
107 if (empty_item_mandatory > 0) {
110 "\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
117 [% IF (AcqCreateItemOrdering) %]
119 $(lastitemblock).appendTo('#outeritemblock');
125 [% IF (AcqCreateItemOrdering) %]
126 if(check_additem('[% UniqueItemFields | html %]') == false) {
127 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
129 $(lastitemblock).appendTo('#outeritemblock');
136 $(document).ready(function(){
137 [% UNLESS ordernumber %]
138 $("#items_list").hide();
141 [% IF AcqCreateItemOrdering and not basket.is_standing %]
142 cloneItemBlock(0, '[% UniqueItemFields | html %]');
145 [% IF ( suggestionid ) %]updateCosts();[% END %]
146 $("#quantity").change(function() {
150 //We apply the function only for modify option
151 [% IF ( quantityrec and not subscriptionid ) %]
152 [% IF ( acqcreate ) %]
153 $('#quantity').blur(function(){
154 // if user decreases the quantity
155 if($(this).val() < [% quantityrec | html %]){
156 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
159 // if user increases the quantity
160 alert(_("You can't add a new item, please create a new order line"));
161 // and we replace the original value
162 $(this).val([% quantityrec | html %])
163 updateCosts(); // blur is invoked after change which updated values
170 //keep a copy of all budgets before removing the inactives
171 disabledBudgetsCopy = $('#budget_id').html();
172 $('#budget_id .b_inactive').remove();
174 $('#showallbudgets').click(function() {
175 if ($(this).is(":checked")) {
176 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
179 $('#budget_id .b_inactive').remove();
183 $("#budget_id").change(function(){
184 var destination_sort1 = $(this).parents('fieldset.rows').find('input[name="sort1"]');
185 var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
186 var sort1 = $(destination_sort1).val() || "";
187 if ( destination_sort1.length < 1 ) {
188 destination_sort1 = $(this).parents('fieldset.rows').find('select[name="sort1"]');
190 var destination_sort2 = $(this).parents('fieldset.rows').find('input[name="sort2"]');
191 var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
192 var sort2 = $(destination_sort2).val() || "";
193 if ( destination_sort2.length < 1 ) {
194 destination_sort2 = $(this).parents('fieldset.rows').find('select[name="sort2"]');
196 getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 );
197 getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 );
199 $("#budget_id").change();
202 function add_user(borrowernumber, borrowername) {
203 var ids = $("#users_ids").val();
205 ids = ids.split(':');
209 if (ids.indexOf(borrowernumber.toString()) < 0) {
210 ids.push(borrowernumber);
211 $("#users_ids").val(ids.join(':'));
212 var li = '<li id="user_'+borrowernumber+'">'+borrowername
213 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
214 + _("Delete user") + '</a>]</li>';
215 $("#users_names").append(li);
221 function del_user(borrowernumber) {
222 $("#user_"+borrowernumber).remove();
223 var ids = $("#users_ids").val().split(':');
224 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
225 $("#users_ids").val(ids.join(':'));
229 [% Asset.css("css/addbiblio.css") | $raw %]
232 <body id="acq_neworderempty" class="acq">
234 [% WRAPPER 'header.inc' %]
235 [% INCLUDE 'acquisitions-search.inc' %]
238 [% WRAPPER 'sub-header.inc' %]
239 [% WRAPPER breadcrumbs %]
240 [% WRAPPER breadcrumb_item %]
241 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
243 [% WRAPPER breadcrumb_item %]
244 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
246 [% WRAPPER breadcrumb_item %]
247 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
249 [% IF ( ordernumber ) %]
250 [% WRAPPER breadcrumb_item bc_active= 1 %]
251 <span>Modify order details (line #[% ordernumber | html %])</span>
254 [% WRAPPER breadcrumb_item bc_active= 1 %]
255 <span>New order</span>
258 [% END #/ WRAPPER breadcrumbs %]
259 [% END #/ WRAPPER sub-header.inc %]
261 <div class="main container-fluid">
263 <div class="col-sm-10 col-sm-push-2">
265 [% INCLUDE 'messages.inc' %]
268 [% IF ( ordernumber ) %]
275 <div class="dialog alert order_error" style="display:none"></div>
277 [% IF ( basketno ) %]
278 <div id="acqui_basket_summary">
279 <fieldset class="rows">
280 <legend>Basket details</legend>
282 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote | html %]</li>[% END %]
283 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote | html %]</li>[% END %]
284 [% IF ( basketcontractno ) %]
285 <li><span class="label">Contract number: </span>[% basketcontractno | html %]</li>
286 <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno | uri %]">[% basketcontractname | html %]</a></li>
288 [% IF ( authorisedbyname ) %]<li><span class="label">[% tp('Acquisitions basket managed by user', 'Managed by:') | html %]</span> [% authorisedbyname | html %]</li>[% END %]
289 [% IF ( creationdate ) %]<li><span class="label">Open on:</span> [% creationdate | $KohaDates %]</li>[% END %]
290 [% IF ( closedate ) %]
291 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
292 [% INCLUDE 'csrf-token.inc' %]
293 <li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>
294 [% IF ( basketgroups ) %]
295 <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
296 [% FOREACH basketgroup IN basketgroups %]
297 [% IF ( basketgroup.default ) %]
298 <option value="[% basketgroup.id | html %]" selected="selected">[% basketgroup.name | html %]</option>
300 <option value="[% basketgroup.id | html %]">[% basketgroup.name | html %]</option>
304 <input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" />
305 <input type="hidden" value="cud-mod_basket" name="op" />
306 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
308 <fieldset class="action"><input type="submit" class="btn btn-primary" value="Change basketgroup" /></fieldset>
317 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated noEnterSubmit" id="Aform" onsubmit="return Check(this);" >
318 [% INCLUDE 'csrf-token.inc' %]
320 <fieldset class="rows">
321 <legend>Patrons</legend>
324 <span class="label">To notify on receiving:</span>
325 <div style="float:left">
326 <ul id="users_names" style="padding-left:0">
327 [% FOREACH user IN users %]
328 <li id="user_[% user.borrowernumber | html %]">
329 [% user.firstname | html %] [% user.surname | html %]
330 [<a onclick="del_user([% user.borrowernumber | html %]);" style="cursor:pointer">Delete user</a>]
334 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" />
335 <a href="#patron_search_modal" id="add_user" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add user</a>
341 <fieldset class="rows">
344 [% IF ( biblionumber ) %]
345 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | uri %]"> Edit record</a></span>
348 [% UNLESS ( existing ) %]
349 <input type="hidden" name="existing" value="no" />
351 <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" />
352 <input type="hidden" name="basketno" value="[% basketno | html %]" />
353 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
354 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
355 <input type="hidden" name="listinc" id="listinc" value="[% listincgst | html %]" />
356 <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst | html %]" />
357 <input type="hidden" name="suggestionid" value="[% suggestionid | html %]" />
358 <input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" />
360 [% FOREACH c IN currencies %]
361 <input type="hidden" id="currency_rate_[% c.currency | html %]" name="[% c.currency | html %]" value="[% c.rate | html %]" />
364 [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
366 [% IF ( biblionumber ) %]
367 <span class="label">Title:</span>
368 <input type="hidden" name="title" value="[% title | html %]" /> <span class="title">[% title | html %]</span>
370 <label for="entertitle">Title: </label>
371 <input type="text" id="entertitle" size="50" name="title" value="[% title | html %]" class="focus" required="required" />
372 <span class="required">Required</span>
376 [% IF ( biblionumber ) %]
377 <span class="label">Author: </span>
378 <input type="hidden" name="author" id="author" value="[% author | html %]" />[% author | html %]
380 <label for="author">Author: </label>
381 <input type="text" size="50" name="author" id="author" value="[% author | html %]" />
385 [% IF ( biblionumber ) %]
386 <span class="label">Publisher: </span>
387 <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode | html %]" />[% publishercode | html %]
389 <label for="publishercode"> Publisher: </label>
390 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode | html %]" />
394 [% IF ( biblionumber ) %]
395 <span class="label">Edition: </span>
396 <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement | html %]" />[% editionstatement | html %]
399 <label for="editionstatement">Edition: </label>
400 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement | html %]" />
404 [% IF ( biblionumber ) %]
405 <span class="label">Publication year: </span>
406 <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear | html %]" />[% publicationyear | html %]
408 <label for="publicationyear">Publication year: </label>
409 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear | html %]" />
413 [% IF ( biblionumber ) %]
414 <span class="label">ISBN: </span>
415 <input type="hidden" name="isbn" id="ISBN" value="[% isbn | html %]" />[% isbn | html %]
417 <label for="ISBN">ISBN: </label>
418 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn | html %]" />
423 [% IF ( biblionumber ) %]
424 <span class="label">EAN: </span>
425 <input type="hidden" name="ean" id="EAN" value="[% ean | html %]" />[% ean | html %]
427 <label for="EAN">EAN: </label>
428 <input type="text" size="20" name="ean" id="EAN" value="[% ean | html %]" />
433 [% IF ( biblionumber ) %]
434 <span class="label">Series: </span>
435 <input type="hidden" name="series" id="series" value="[% seriestitle | html %]" />[% seriestitle | html %]
437 <label for="series">Series: </label>
438 <input type="text" size="50" name="series" id="series" value="[% seriestitle | html %]" />
441 [% UNLESS ( biblionumber ) %]
442 [% IF ( itemtypeloop ) %]
444 <span class="label">Item type:</span>
445 <select name="itemtype" style="width:12em;">
446 [% FOREACH itemtype IN itemtypeloop %]
447 <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
455 <input type="hidden" name="use_ACQ_framework" value="1" />
456 [% IF biblionumber %]
458 [% FOREACH field IN catalog_details %]
459 <li class="subfield_line">
460 <label>[% field.lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
461 [% field.value | html %]
467 [% FOREACH field IN catalog_details %]
468 <li class="subfield_line">
469 [% PROCESS display_subfield field=field %]
477 [% IF ( suggestionid ) %]
478 <fieldset class="rows">
479 <legend>Suggestion</legend>
482 <span class="label">Suggested by: </span>
483 [% surnamesuggestedby | html %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby | html %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid | uri %]&op=show">suggestion #[% suggestionid | html %]</a>)
489 [% UNLESS subscriptionid || basket.is_standing %][% # it is a suggestion, we have not items %]
490 [% IF (AcqCreateItemOrdering) %]
492 <div id="items_list" class="page-section">
493 <p><strong>Items list</strong></p>
494 <div style="width:100%;overflow:auto;">
498 <th class="noExport">Actions</th>
500 <th>Home library</th>
501 <th>Holding library</th>
502 <th>Not for loan</th>
507 <th>Inventory number</th>
515 [% FOREACH item IN items %]
516 <tr idblock="itemblock[% item.id | html %]">
518 <td>[% item.barcode | html %]</td>
519 <td>[% Branches.GetName(item.homebranch) | html %]</td>
520 <td>[% Branches.GetName(item.holdingbranch) | html %]</td>
521 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %]</td>
522 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %]</td>
523 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</td>
524 <td>[% item.itemcallnumber | html %]</td>
525 <td>[% item.copynumber | html %]</td>
526 <td>[% item.stocknumber | html %]</td>
527 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td>
528 <td>[% ItemTypes.GetDescription( item.itype ) | html %]</td>
529 <td>[% item.materials | html %]</td>
530 <td>[% item.itemnotes | html %]</td>
538 <fieldset class="rows" id="itemfieldset">
539 <legend>Item</legend>
540 [% IF ( NoACQframework ) %]
541 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
544 [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
545 <div class="dialog message">The autoBarcode system preference is set to [% Koha.Preference('autoBarcode') | html %] and items with blank barcodes will have barcodes generated upon save to database</div>
548 <div id="outeritemblock"></div>
551 [% END %][%# | html UNLESS subscriptionid %]
552 [% END %][%# IF (AcqCreateItemOrdering) %]
553 <fieldset class="rows">
554 <legend>Accounting details</legend>
557 <label class="required" for="quantity">Quantity: </label>
558 [% IF subscriptionid %]
559 <input type="text" size="20" id="quantity" name="quantity" value="1" onchange="updateCosts();" />
560 [% ELSIF AcqCreateItemOrdering %]
561 [% IF basket.is_standing %]
562 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
564 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="[% quantityrec | html %]" />
565 [% IF quantitysugg %]
566 (suggested: [% quantitysugg %])
570 [% IF basket.is_standing %]
571 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
573 <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec | html %]" onchange="updateCosts();" />
574 [% IF quantitysugg %]
575 (suggested: [% quantitysugg %])
579 <span class="required">Required</span>
580 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order -->
581 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
583 [% IF subscription %]
586 <span>Frequency:</span> [% subscription.frequency.description | html %] |
587 [% IF subscription.numberlength %]<span>Number of issues: [% subscription.numberlength | html %]</span>[% END %]
588 [% IF subscription.weeklength %]<span>Number of weeks: [% subscription.weeklength | html %]</span>[% END %]
589 [% IF subscription.monthlength %]<span>Number of months: [% subscription.monthlength | html %]</span>[% END %]
594 <label class="required" for="budget_id">Fund: </label>
595 [% active_count = 0 %]
596 [% IF !ordernumber %]
597 [% FOREACH budget_loo IN budget_loop %]
598 [% active_count= active_count + budget_loo.b_active %]
601 <select class="select2" id="budget_id" name="budget_id">
602 <option value="">Select a fund</option>
603 [% FOREACH budget_loo IN budget_loop %]
604 [% level_indent_cnt = 0 %]
605 [% level_indent = "" %]
606 [% WHILE level_indent_cnt < budget_loo.b_level %]
607 [% level_indent = level_indent _ " -- " %]
608 [% level_indent_cnt = level_indent_cnt +1 %]
611 [% IF ( budget_loo.b_sel ) %]
612 [% active_count = 0 #select no other fund %]
613 <option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
615 [% ELSIF active_count==1 && budget_loo.b_active %]
616 <option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
619 [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %]
620 <option value="[% budget_loo.b_id | html %]" class="[% bdgclass | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
623 [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %]
627 <span class="required">Required</span>
628 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
629 <input type="checkbox" id="showallbudgets" />
632 <label for="currency">Currency:</label>
633 <select name="currency" id="currency" onchange="updateCosts();">
634 [% FOREACH c IN currencies %]
635 [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
636 <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
637 [% ELSIF not c.archived %]
638 <option value="[% c.currency | html %]">[% c.currency | html %]</option>
644 <label for="listprice">Vendor price: </label>
645 <input class="decimal" type="text" size="20" name="listprice" id="listprice" value="[% listprice | html %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
648 <label for="uncertainprice">Uncertain price: </label>
649 [% IF ( uncertainprice ) %]
650 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" checked="checked" />
652 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
655 [% IF ( gst_values ) %]
657 <label for="tax_rate">Tax rate: </label>
658 <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
659 [% SET gst_found = 0 %]
660 [% FOREACH gst IN gst_values %]
661 [% IF ( gst.option == tax_rate ) %]
662 <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option>
663 [% SET gst_found = 1 %]
665 <option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option>
670 <option value="[% tax_rate | html %]" selected="selected">[% tax_rate * 100 | html %]%</option>
674 [% IF !gst_found %]<span class="required">Tax rate not defined in system preference TaxRates!</span>[% END %]
676 <input type="hidden" name="tax_rate" value="0" />
680 <label for="discount">Discount: </label>
681 [% IF ( ordernumber ) %]
682 <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount | html %]" onchange="updateCosts();" />%
684 <input type="text" size="6" name="discount" id="discount" value="[% discount | html %]" onchange="updateCosts();" />%
688 <label for="rrp">Retail price: </label>
689 <input class="decimal" type="text" size="20" name="rrp" id="rrp" value="[% rrp | $Price on_editing => 1 %]" /> (adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])
692 <label for="replacementprice">Replacement cost: </label>
693 <input class="decimal" type="text" size="20" name="replacementprice" id="replacementprice" value="[% replacementprice | html | $Price on_editing => 1 %]" />
696 <label for="ecost">Budgeted cost: </label>
697 <input type="text" size="20" name="ecost" id="ecost" value="[% ecost | html %]" readonly="readonly" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
700 <label for="total">Total: </label>
701 <input type="text" id="total" size="20" name="total" value="[% total | html %]" readonly="readonly" /> (budgeted cost * quantity)
703 <li class="ordering_unitprice">
704 <label for="unitprice">Actual cost: </label>
705 <input class="decimal" type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice | html %]" />
706 [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
709 <label for="order_internalnote">Internal note: </label>
710 <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote | html %][% END %]</textarea>
713 <label for="order_vendornote">Vendor note: </label>
714 <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote" >[% IF ( order_vendornote ) %][% order_vendornote | html %][% END %]</textarea>
717 <label for="estimated_delivery_date">Estimated delivery date: </label>
718 <input type="text" id="estimated_delivery_date" size="10" name="estimated_delivery_date" class="flatpickr" value="[% estimated_delivery_date | html %]"/>
719 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
722 <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
725 <label for="sort1">Statistic 1: </label>
726 <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 | html %]" />
729 <label for="sort2">Statistic 2: </label>
730 <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 | html %]" />
735 [% IF additional_fields.size %]
736 [% INCLUDE 'additional-fields-entry.inc' available = additional_fields values = additional_field_values %]
739 <fieldset class="action">
740 <input type="hidden" id="op" name="op" value="cud-order" />
741 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
742 <input type="submit" class="btn btn-primary" value="Save" />
743 [% IF (suggestionid) %]
744 <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">Cancel</a>
746 [% IF subscriptionid %]
747 <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">Cancel</a>
749 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
755 <div id="procModal" data-backdrop="static" class="modal fade" aria-labelledby="procModal" aria-hidden="true">
756 <div class="modal-dialog">
757 <div class="modal-content">
758 <div class="modal-body">
759 <h3>Processing multiple items</h3>
765 <div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
766 <div class="modal-dialog">
767 <div class="modal-content">
768 <h3>Invalid number of copies</h3>
769 <p>Please enter a <strong>number</strong>, greater than or equal to 1</p>
775 </div> <!-- /.col-sm-10.col-sm-push-2 -->
777 <div class="col-sm-2 col-sm-pull-10">
779 [% INCLUDE 'acquisitions-menu.inc' %]
781 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
782 </div> <!-- /.row -->
784 [% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %]
785 [% SET columns = ['cardnumber','name','category','branch','action'] %]
786 [% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1 %]
788 [% MACRO jsinclude BLOCK %]
791 [% INCLUDE 'intranet-bottom.inc' %]
793 [% BLOCK display_subfield %]
794 <label>[% field.marc_lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
796 [% SET mv = field.marc_value %]
797 [% IF ( mv.type == 'text' ) %]
798 [% IF ( mv.readonly == 1 ) %]
799 <input type="text" id="[%- mv.id | html -%]" name="bib_field_value" value="[%- mv.value | html -%]" class="input_marceditor readonly" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" readonly="readonly" />
801 <input type="text" id="[%- mv.id | html -%]" name="bib_field_value" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" />
804 [% ELSIF ( mv.type == 'text_complex' ) %]
805 <input type="text" id="[%- mv.id | html -%]" name="bib_field_value" value="[%- mv.value | html -%]" class="input_marceditor framework_plugin" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" />
806 [% mv.javascript | $raw %]
807 [% ELSIF ( mv.type == 'hidden' ) %]
808 <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="bib_field_value" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
809 [% ELSIF ( mv.type == 'textarea' ) %]
810 <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="bib_field_value" class="input_marceditor" tabindex="1">[%- mv.value | html -%]</textarea>
811 [% ELSIF ( mv.type == 'select' ) %]
812 <select name="bib_field_value" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
813 [% FOREACH aval IN mv.values %]
814 [% IF aval == mv.default %]
815 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
817 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
821 [% END # /IF (mv.type...) %]
823 <div class="subfield_controls">
824 [% IF ( mv.type == 'text_complex' ) %]
826 <span class="buttonDot tag_editor disabled" tabindex="-1" title="Field autofilled by plugin"></span>
828 [% IF mv.plugin == "upload.pl" %]
829 <a href="#" id="buttonDot_[% mv.id | html %]" class="tag_editor upload framework_plugin" tabindex="1"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
831 <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor framework_plugin" tabindex="1" title="Tag editor">Tag editor</a>
837 <input type="hidden" name="bib_kohafield" value="[% field.kohafield | html %]" />
838 <input type="hidden" name="bib_tag" value="[% field.tag | html %]" />
839 <input type="hidden" name="bib_subfield" value="[% field.subfield | html %]" />
840 [% IF field.mandatory %] <span class="required">Required</span>[% END %]