1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'additem.js.inc' %]
5 <script type="text/javascript" src="[% themelang %]/js/additem.js"></script>
6 <script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
7 <script type="text/javascript" src="[% themelang %]/js/prevent_submit.js"></script>
8 <script type="text/javascript">
10 function Check(form) {
11 [% IF (AcqCreateItemReceiving) %]
12 var total_errors = CheckMandatorySubfields(form);
13 if (total_errors != 0) {
14 var alertString = _("Form not submitted because of the following problem(s)");
15 alertString += "\n------------------------------------------------------------------------------------\n";
16 alertString += "\n- " + _("%s mandatory fields empty (highlighted)").format(total_errors);
21 if(check_additem('[% UniqueItemFields %]') == false){
22 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
26 // Remove last itemblock if it is not in items_list
27 var lastitemblock = $("#outeritemblock > div:last");
28 var tobedeleted = true;
29 var listitems = $("#items_list tr");
30 $(listitems).each(function(){
31 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
36 $(lastitemblock).remove();
39 if(check_additem('[% UniqueItemFields %]') == false){
40 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
42 $(lastitemblock).appendTo("#outeritemblock");
51 [% IF (AcqCreateItem == 'ordering') %]
52 var items_columns = [null, null, 'barcode', 'homebranchname',
53 'holdingbranchname', 'notforloan', 'restricted', 'location',
54 'itemcallnumber', 'copynumber', 'stocknumber', 'collection',
55 'itemtype', 'materials', 'itemnotes'];
57 function PopupEditPage(biblionumber, itemnumber) {
58 var url = "/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber="
59 + biblionumber + "&itemnumber=" + itemnumber + "&popup=1#edititem";
60 var w = window.open(url);
61 var watchClose = setInterval(function() {
63 clearTimeout(watchClose);
64 $.getJSON('/cgi-bin/koha/catalogue/getitem-ajax.pl',
66 'itemnumber': itemnumber
69 var tds = $("#item_"+itemnumber+" td");
70 for(var i=2; i<tds.length; i++) {
71 var column = items_columns[i];
72 $(tds[i]).text(item[column]);
80 function CalcQtyToReceive() {
81 var qty = $("input[name='items_to_receive']:checked").length;
82 $("#quantity").val(qty);
85 function CheckNItems(n) {
86 $("input[name='items_to_receive']").each(function() {
87 $(this).attr('checked', false);
89 $("input[name='items_to_receive']:lt("+n+")").each(function () {
90 $(this).attr('checked', true);
95 $(document).ready(function() {
96 [% IF (AcqCreateItemReceiving) %]
97 cloneItemBlock(0, '[% UniqueItemFields %]');
98 [% ELSIF (AcqCreateItem == 'ordering') && not subscriptionid %]
99 $("input[name='items_to_receive']").change(function() {
103 $("#quantity").keyup(function() {
104 var qty = parseInt($("#quantity").val());
105 var qtyto = parseInt($("#quantity_to_receive").val());
107 $("#qtyrecerror").show();
109 $("#qtyrecerror").hide();
111 CheckNItems($(this).val());
118 <body id="acq_orderreceive" class="acq">
119 [% INCLUDE 'header.inc' %]
120 [% INCLUDE 'acquisitions-search.inc' %]
122 <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>
124 <div id="doc3" class="yui-t2">
130 <h1>Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]] [% END %] (order #[% ordernumber %])</h1>
133 <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
135 <div class="yui-u first">
136 <div class="error" style="display:none"></div>
138 <fieldset class="rows">
139 <legend>Catalog details</legend>
140 <ol><li><span class="label">Title: </span><span class="title">[% title |html %]</span></li>
141 <li> <span class="label">Author: </span>
143 <li><span class="label">Copyright: </span>
144 [% copyrightdate %]</li>
145 <li> <span class="label">ISBN: </span>
147 <li> <span class="label">Series: </span>
148 [% seriestitle %]</li>
152 [% IF ( suggestionid ) %]
153 <fieldset class="rows">
154 <legend>Suggestion</legend>
157 <span class="label">Suggested by: </span>
158 [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">suggestion #[% suggestionid %]</a>)
164 [% IF (AcqCreateItemReceiving) %]
165 <div id="items_list" style="display:none">
166 <p><b>Items list</b></p>
167 <div style="width:100%;overflow:auto;">
174 <th>Home library</th>
175 <th>Holding library</th>
176 <th>Not for loan</th>
181 <th>Stock number</th>
182 <th>Collection code</th>
194 [% UNLESS subscriptionid %]
195 <fieldset class="rows" id="itemfieldset">
196 <legend>Item</legend>
197 [% IF ( NoACQframework ) %]
199 No ACQ framework, using default. You should create a
200 framework with code ACQ, the items framework would be
204 <div id="outeritemblock"></div>
207 [% ELSIF (AcqCreateItem == 'ordering') %]
208 [% IF (items.size) %]
210 <div style="width:100%;overflow:auto">
218 <th>Holding branch</th>
219 <th>Not for loan</th>
224 <th>Stock number</th>
225 <th>Collection code</th>
232 [% FOREACH item IN items %]
233 <tr id="item_[% item.itemnumber %]">
234 <td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td>
235 <td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">Edit</a></td>
236 <td>[% item.barcode %]</td>
237 <td>[% item.homebranchname %]</td>
238 <td>[% item.holdingbranchname %]</td>
239 <td>[% item.notforloan %]</td>
240 <td>[% item.restricted %]</td>
241 <td>[% item.location %]</td>
242 <td>[% item.itemcallnumber %]</td>
243 <td>[% item.copynumber %]</td>
244 <td>[% item.stocknumber %]</td>
245 <td>[% item.collection %]</td>
246 <td>[% item.itemtype %]</td>
247 <td>[% item.materials %]</td>
248 <td>[% item.itemnotes %]</td>
256 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
257 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
258 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
259 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
260 <input type="hidden" name="datereceived" value="[% datereceived_iso %]" />
261 <input type="hidden" name="gstrate" value="[% gstrate %]" />
264 <fieldset class="rows">
265 <legend>Accounting details</legend>
267 <li><label for="datereceived">Date received: </label><span> [% datereceived %] </span></li>
268 <li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund">
269 <option value="">Keep current ([% budget_period_description %] - [% bookfund %])</option>
270 [% FOREACH period IN budget_loop %]
271 <optgroup label="[% period.description %]">
272 [% FOREACH fund IN period.funds %]
273 [% IF ( fund.b_sel ) %]
274 <option value="[% fund.b_id %]" selected="selected">[% fund.b_txt %]</option>
276 <option value="[% fund.b_id %]">[% fund.b_txt %]</option>
281 <li><label> </label><span>(Current: [% budget_period_description %] - [% bookfund %])</span></li>
282 <li><label for="creator">Created by: </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %]No name[% END %]</span></li>
283 <li><label for="quantity_to_receive">Quantity to receive: </label><span class="label">
284 [% IF ( edit and not subscriptionid) %]
285 <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
287 <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
290 <li><label for="quantity">Quantity received: </label>
291 [% IF (AcqCreateItemReceiving) %]
292 [% IF ( subscriptionid ) %]
293 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="1" />
295 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" />
298 [% IF ( quantityreceived ) %]
300 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived %]" />
301 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
304 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
306 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
308 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
311 [% IF ( subscriptionid ) %]
312 <input type="text" readonly="readonly" id="quantity" size="20" name="quantityrec" value="1" />
314 <input type="text" id="quantity" size="20" name="quantityrec" value="1" />
316 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
318 <div id="qtyrecerror" style="display:none">
319 <p class="error">Warning, you have entered more items than expected.
320 Items will not be created.</p>
322 [% END %][%# IF (AcqCreateItemReceiving) %]
324 <li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /></li>
325 <li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /></li>
326 <li><label for="cost">Actual cost:</label>
327 [% IF ( unitprice ) %]
328 <input type="text" size="20" name="cost" id="cost" value="[% unitprice %]" />
330 <input type="text" size="20" name="cost" id="cost" value="[% ecost %]" />
332 <li><label for="order_internalnote">Internal note: </label><textarea name="order_internalnote" width="40" rows="8" >[% order_internalnote %]</textarea></li>
333 <li><label for="order_vendornote">Vendor note: </label><textarea name="order_vendornote" width="40" rows="8" readonly="readonly">[% order_vendornote %]</textarea></li>
338 </div><div class="yui-g"><fieldset class="action">
339 <input type="submit" value="Save" class="button" accesskey="w" />
340 <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&sticky_filters=1">Cancel</a>
341 </fieldset></div> </form>
343 This ordernumber does not exist.
349 [% INCLUDE 'acquisitions-menu.inc' %]
352 [% INCLUDE 'intranet-bottom.inc' %]