3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 [% INCLUDE 'additem.js.inc' %]
8 <script type="text/javascript" src="[% interface %]/[% theme %]/js/additem.js"></script>
9 <script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging.js"></script>
10 <script type="text/javascript" src="[% interface %]/[% theme %]/js/prevent_submit.js"></script>
11 <script type="text/javascript">
13 function Check(form) {
14 [% IF (AcqCreateItemReceiving) %]
15 var total_errors = CheckMandatorySubfields(form);
16 if (total_errors != 0) {
17 var alertString = _("Form not submitted because of the following problem(s)");
18 alertString += "\n------------------------------------------------------------------------------------\n";
19 alertString += "\n- " + _("%s mandatory fields empty (highlighted)").format(total_errors);
24 if(check_additem('[% UniqueItemFields %]') == false){
25 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
29 // Remove last itemblock if it is not in items_list
30 var lastitemblock = $("#outeritemblock > div:last");
31 var tobedeleted = true;
32 var listitems = $("#items_list tr");
33 $(listitems).each(function(){
34 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
39 $(lastitemblock).remove();
42 if(check_additem('[% UniqueItemFields %]') == false){
43 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
45 $(lastitemblock).appendTo("#outeritemblock");
54 [% IF (AcqCreateItem == 'ordering') %]
55 var items_columns = [null, null, 'barcode', 'homebranchname',
56 'holdingbranchname', 'notforloan', 'restricted', 'location',
57 'itemcallnumber', 'copynumber', 'stocknumber', 'collection',
58 'itemtype', 'materials', 'itemnotes'];
60 function PopupEditPage(biblionumber, itemnumber) {
61 var url = "/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber="
62 + biblionumber + "&itemnumber=" + itemnumber + "&popup=1#edititem";
63 var w = window.open(url);
64 var watchClose = setInterval(function() {
66 clearTimeout(watchClose);
67 $.getJSON('/cgi-bin/koha/catalogue/getitem-ajax.pl',
69 'itemnumber': itemnumber
72 var tds = $("#item_"+itemnumber+" td");
73 for(var i=2; i<tds.length; i++) {
74 var column = items_columns[i];
75 var text = item[column];
76 if ( text == null ) text = '';
85 function CalcQtyToReceive() {
86 var qty = $("input[name='items_to_receive']:checked").length;
87 $("#quantity").val(qty);
90 function CheckNItems(n) {
91 $("input[name='items_to_receive']").each(function() {
92 $(this).prop('checked', false);
94 $("input[name='items_to_receive']:lt("+n+")").each(function () {
95 $(this).prop('checked', true);
100 $(document).ready(function() {
101 [% IF (AcqCreateItemReceiving) %]
102 cloneItemBlock(0, '[% UniqueItemFields %]');
103 [% ELSIF (AcqCreateItem == 'ordering') && not subscriptionid %]
104 $("input[name='items_to_receive']").change(function() {
108 $("#quantity").keyup(function() {
109 var qty = parseInt($("#quantity").val());
110 var qtyto = parseInt($("#quantity_to_receive").val());
112 $("#qtyrecerror").show();
114 $("#qtyrecerror").hide();
116 CheckNItems($(this).val());
123 <body id="acq_orderreceive" class="acq">
124 [% INCLUDE 'header.inc' %]
125 [% INCLUDE 'acquisitions-search.inc' %]
127 <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 %]">[% name %]</a> › Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]][% END %] (order #[% ordernumber %])</div>
129 <div id="doc3" class="yui-t2">
135 <h1>Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]] [% END %] (order #[% ordernumber %])</h1>
138 <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
140 <div class="yui-u first">
141 <div class="error" style="display:none"></div>
143 <fieldset class="rows">
144 <legend>Catalog details</legend>
145 <ol><li><span class="label">Title: </span><span class="title">[% title |html %]</span></li>
146 <li> <span class="label">Author: </span>
148 <li><span class="label">Copyright: </span>
149 [% copyrightdate %]</li>
150 <li> <span class="label">ISBN: </span>
152 <li> <span class="label">Series: </span>
153 [% seriestitle %]</li>
157 [% IF ( suggestionid ) %]
158 <fieldset class="rows">
159 <legend>Suggestion</legend>
162 <span class="label">Suggested by: </span>
163 [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">suggestion #[% suggestionid %]</a>)
169 [% IF (AcqCreateItemReceiving) %]
170 <div id="items_list" style="display:none">
171 <p><b>Items list</b></p>
172 <div style="width:100%;overflow:auto;">
179 <th>Home library</th>
180 <th>Holding library</th>
181 <th>Not for loan</th>
186 <th>Inventory number</th>
187 <th>Collection code</th>
199 [% UNLESS subscriptionid %]
200 <fieldset class="rows" id="itemfieldset">
201 <legend>Item</legend>
202 [% IF ( NoACQframework ) %]
204 No ACQ framework, using default. You should create a
205 framework with code ACQ, the items framework would be
209 <div id="outeritemblock"></div>
212 [% ELSIF (AcqCreateItem == 'ordering') %]
213 [% IF (items.size) %]
215 <div style="width:100%;overflow:auto">
223 <th>Holding branch</th>
224 <th>Not for loan</th>
229 <th>Inventory number</th>
230 <th>Collection code</th>
237 [% FOREACH item IN items %]
238 <tr id="item_[% item.itemnumber %]">
239 <td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td>
240 <td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">Edit</a></td>
241 <td>[% item.barcode %]</td>
242 <td>[% Branches.GetName( item.homebranch )%]</td>
243 <td>[% Branches.GetName( item.holdingbranch ) %]</td>
244 <td>[% item.notforloan %]</td>
245 <td>[% item.restricted %]</td>
246 <td>[% item.location %]</td>
247 <td>[% item.itemcallnumber %]</td>
248 <td>[% item.copynumber %]</td>
249 <td>[% item.stocknumber %]</td>
250 <td>[% item.collection %]</td>
251 <td>[% item.itemtype %]</td>
252 <td>[% item.materials %]</td>
253 <td>[% item.itemnotes %]</td>
261 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
262 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
263 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
264 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
265 <input type="hidden" name="gstrate" value="[% gstrate %]" />
268 <fieldset class="rows">
269 <legend>Accounting details</legend>
272 <label for="datereceived">Date received: </label>
273 <input type="text" size="10" id="datereceived" name="datereceived" value="[% datereceived | $KohaDates %]" class="datepicker" />
275 <li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund">
276 <option value="">Keep current ([% budget_period_description %] - [% bookfund %])</option>
277 [% FOREACH period IN budget_loop %]
278 <optgroup label="[% period.description %]">
279 [% FOREACH fund IN period.funds %]
280 [% IF ( fund.b_sel ) %]
281 <option value="[% fund.b_id %]" selected="selected">[% fund.b_txt %]</option>
283 <option value="[% fund.b_id %]">[% fund.b_txt %]</option>
288 <li><label> </label><span>(Current: [% budget_period_description %] - [% bookfund %])</span></li>
289 <li><label for="creator">Created by: </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %]No name[% END %]</span></li>
290 <li><label for="quantity_to_receive">Quantity to receive: </label><span class="label">
291 [% IF ( edit and not subscriptionid) %]
292 <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
294 <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
297 <li><label for="quantity">Quantity received: </label>
298 [% IF (AcqCreateItemReceiving) %]
299 [% IF ( subscriptionid ) %]
300 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="1" />
302 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" />
305 [% IF ( quantityreceived ) %]
307 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived %]" />
308 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
311 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
313 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
315 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
318 [% IF ( subscriptionid ) %]
319 <input type="text" readonly="readonly" id="quantity" size="20" name="quantityrec" value="1" />
321 <input type="text" id="quantity" size="20" name="quantityrec" value="1" />
323 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
325 <div id="qtyrecerror" style="display:none">
326 <p class="error">Warning, you have entered more items than expected.
327 Items will not be created.</p>
329 [% END %][%# IF (AcqCreateItemReceiving) %]
331 <li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /></li>
332 <li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /></li>
333 <li><label for="cost">Actual cost:</label>
334 [% IF ( unitprice ) %]
335 <input type="text" size="20" name="cost" id="cost" value="[% unitprice %]" />
337 <input type="text" size="20" name="cost" id="cost" value="[% ecost %]" />
339 <li><label for="order_internalnote">Internal note: </label><textarea name="order_internalnote" width="40" rows="8" >[% order_internalnote %]</textarea></li>
340 [% IF order_vendornote %]
341 <li><label for="order_vendornote">Vendor note: </label><span>[% order_vendornote %]</span></li>
347 </div><div class="yui-g"><fieldset class="action">
348 <input type="submit" value="Save" class="button" accesskey="w" />
349 <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&sticky_filters=1">Cancel</a>
350 </fieldset></div> </form>
352 This ordernumber does not exist.
358 [% INCLUDE 'acquisitions-menu.inc' %]
361 [% INCLUDE 'intranet-bottom.inc' %]