[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% name | html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketno | html %]</a> › [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber | html %])[% ELSE %]New order[% END %]</div>
+<nav aria-label="Breadcrumb" class="breadcrumb">
+ <ol>
+ <li>
+ <a href="/cgi-bin/koha/mainpage.pl">Home</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
+ </li>
+
+ [% IF ( ordernumber ) %]
+ <li>
+ <a href="#" aria-current="page">
+ Modify order details (line #[% ordernumber | html %])
+ </a>
+ </li>
+ [% ELSE %]
+ <li>
+ <a href="#" aria-current="page">
+ New order
+ </a>
+ </li>
+ [% END %]
+ </ol>
+</nav>
[% INCLUDE 'blocking_errors.inc' %]
[% IF (AcqCreateItemOrdering) %]
<div id="items_list" style="display:none">
- <p><b>Items list</b></p>
+ <p><strong>Items list</strong></p>
<div style="width:100%;overflow:auto;">
<table>
<thead>
<tr>
- <th>Actions</th>
+ <th class="noExport">Actions</th>
<th>Barcode</th>
<th>Home library</th>
<th>Holding library</th>
<th>Call number</th>
<th>Copy number</th>
<th>Inventory number</th>
- <th>Collection code</th>
+ <th>Collection</th>
<th>Item type</th>
<th>Materials</th>
<th>Notes</th>
<legend>Accounting details</legend>
<ol>
<li>
- [% IF ( close ) %]
- <span class="label required">Quantity: </span>
- <input type="hidden" name="quantity" value="[% quantity | html %]" />[% quantity | html %]
+ <label class="required" for="quantity">Quantity: </label>
+ [% IF subscriptionid %]
+ <input type="text" size="20" id="quantity" name="quantity" value="1" onchange="updateCosts();" />
+ [% ELSIF AcqCreateItemOrdering %]
+ [% IF basket.is_standing %]
+ <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
+ [% ELSE %]
+ <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
+ [% END %]
[% ELSE %]
- <label class="required" for="quantity">Quantity: </label>
- [% IF subscriptionid %]
- <input type="text" size="20" id="quantity" name="quantity" value="1" onchange="updateCosts();" />
- [% ELSIF AcqCreateItemOrdering %]
- [% IF basket.is_standing %]
- <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
- [% ELSE %]
- <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
- [% END %]
+ [% IF basket.is_standing %]
+ <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
[% ELSE %]
- [% IF basket.is_standing %]
- <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
- [% ELSE %]
- <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec | html %]" onchange="updateCosts();" />
- [% END %]
+ <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec | html %]" onchange="updateCosts();" />
[% END %]
- <span class="required">Required</span>
[% END %]
+ <span class="required">Required</span>
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order -->
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
[% END %]
</li>
<li>
- [% IF ( close ) %]
- <span class="label required">Fund: </span>
- <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id | html %]" />[% Budget_name | html %]
- [% ELSE %]
<label class="required" for="budget_id">Fund: </label>
[% active_count = 0 %]
[% IF !ordernumber %]
style="padding-left:[% budget_loo.b_level | html %]em;"
>
[% END %]
- [% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %]
+ [% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %]
</option>
[% END %]
</select>
<span class="required">Required</span>
<label for="showallbudgets" style="float:none;"> Show inactive:</label>
<input type="checkbox" id="showallbudgets" />
- [% END %]
</li>
<li>
- [% IF ( close ) %]
- <span class="label">Currency: </span>
- <input type="hidden" name="currency" id="currency" value="[% currency | html %]" />[% currency | html %]
- [% ELSE %]
<label for="currency">Currency:</label>
<select name="currency" id="currency" onchange="updateCosts();">
[% FOREACH c IN currencies %]
[% END %]
[% END %]
</select>
- [% END %]
</li>
<li>
- [% IF ( close ) %]
- <span class="label">Vendor price: </span>
- <input type="hidden" name="listprice" id="listprice" value="[% listprice | html %]" />[% listprice | html %] [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
- [% ELSE %]
<label for="listprice">Vendor price: </label>
<input type="text" size="20" name="listprice" id="listprice" value="[% listprice | html %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
- [% END %]
</li>
- [% UNLESS ( close ) %]
<li>
<label for="uncertainprice">Uncertain price: </label>
[% IF ( uncertainprice ) %]
<input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
[% END %]
</li>
- [% END %]
[% IF ( gst_values ) %]
<li>
- [% IF ( close ) %]
- <span class="label">Tax rate: </span>
- <input type="hidden" name="tax_rate" id="tax_rate" value="[% tax_rate | html %]" />[% tax_rate | html %]%
- [% ELSE %]
- <label for="tax_rate">Tax rate: </label>
- <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
+ <label for="tax_rate">Tax rate: </label>
+ <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
+ [% SET gst_found = 0 %]
[% FOREACH gst IN gst_values %]
[% IF ( gst.option == tax_rate ) %]
<option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option>
+ [% SET gst_found = 1 %]
[% ELSE %]
<option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option>
[% END %]
[% END %]
- </select>
- [% END %]
- [% ELSE %]
+
+ [% IF !gst_found %]
+ <option value="[% tax_rate | html %]" selected="selected">[% tax_rate * 100 | html %]%</option>
+ [% END %]
+ </select>
+
+ [% IF !gst_found %]<span class="required">Tax rate not defined in system preference TaxRates!</span>[% END %]
+ [% ELSE %]
<input type="hidden" name="tax_rate" value="0" />
</li>
[% END %]
<li>
<label for="discount">Discount: </label>
- [% IF ( close ) %]
- [% IF ( orderdiscount ) %]
- <input type="hidden" name="discount" id="discount" value="[% orderdiscount | html %]" />[% orderdiscount_2dp | html %]%
- [% ELSE %]
- <input type="hidden" name="discount" id="discount" value="[% discount | html %]" />[% discount_2dp | html %]%
- [% END %]
+ [% IF ( orderdiscount ) %]
+ <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount | html %]" onchange="updateCosts();" />%
[% ELSE %]
- [% IF ( orderdiscount ) %]
- <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount | html %]" onchange="updateCosts();" />%
- [% ELSE %]
- <input type="text" size="6" name="discount" id="discount" value="[% discount | html %]" onchange="updateCosts();" />%
- [% END %]
+ <input type="text" size="6" name="discount" id="discount" value="[% discount | html %]" onchange="updateCosts();" />%
[% END %]
</li>
<li>
- [% IF ( close ) %]
- <span class="label">Retail price: </span>
- <input type="hidden" name="rrp" id="rrp" value="[% rrp | html %]" />[% rrp | html %] (adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])
- [% ELSE %]
- <label for="rrp">Retail price: </label>
- <input type="text" size="20" name="rrp" id="rrp" value="[% rrp | html %]" /> (adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])
- [% END %]
+ <label for="rrp">Retail price: </label>
+ <input type="text" size="20" name="rrp" id="rrp" value="[% rrp | html %]" /> (adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])
</li>
<li>
<label for="replacementprice">Replacement cost: </label>
<label for="total">Total: </label>
<input type="text" id="total" size="20" name="total" value="[% total | html %]" readonly="readonly" /> (budgeted cost * quantity)
</li>
+ <li class="ordering_unitprice">
+ <label for="unitprice">Actual cost: </label>
+ <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice | html %]" />
+ [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
+ </li>
<li>
<label for="order_internalnote">Internal note: </label>
<textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote | html %][% END %]</textarea>
<div class="modal-dialog">
<div class="modal-content">
<h3>Invalid number of copies</h3>
- <p>Please enter a <b>number</b>, greater than or equal to 1</p>
+ <p>Please enter a <strong>number</strong>, greater than or equal to 1</p>
</div>
</div>
</div>
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/acquisitions-menu.js") | $raw %]
[% Asset.js("js/acq.js") | $raw %]
- [% INCLUDE 'additem.js.inc' %]
[% Asset.js("js/additem.js") | $raw %]
[% Asset.js("js/cataloging.js") | $raw %]
+ [% INCLUDE 'calendar.inc' %]
<script>
actTotal = "";