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/prevent_submit.js"></script>
7 <script type="text/javascript">
10 [% IF (AcqCreateItemReceiving) %]
12 $("input[name='mandatory'],select[name='mandatory']").each(function(i){
13 if($(this).val() == 1){
14 var mandatory_field = $("input[name='field_value'],select[name='field_value']").eq(i);
15 if(mandatory_field.val() == ''){
16 mandatory_field.addClass("missing");
22 if (total_errors != 0) {
23 var alertString = _("Form not submitted because of the following problem(s)");
24 alertString += "\n------------------------------------------------------------------------------------\n";
25 alertString += "\n- "+ total_errors+_(" mandatory fields empty (highlighted)");
30 if(check_additem('[% UniqueItemFields %]') == false){
31 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
35 // Remove last itemblock if it is not in items_list
36 var lastitemblock = $("#outeritemblock > div:last");
37 var tobedeleted = true;
38 var listitems = $("#items_list tr");
39 $(listitems).each(function(){
40 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
45 $(lastitemblock).remove();
48 if(check_additem('[% UniqueItemFields %]') == false){
49 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
51 $(lastitemblock).appendTo("#outeritemblock");
60 [% IF (AcqCreateItem == 'ordering') %]
61 var items_columns = [null, null, 'barcode', 'homebranchname',
62 'holdingbranchname', 'notforloan', 'restricted', 'location',
63 'itemcallnumber', 'copynumber', 'stocknumber', 'collection',
64 'itemtype', 'materials', 'itemnotes'];
66 function PopupEditPage(biblionumber, itemnumber) {
67 var url = "/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber="
68 + biblionumber + "&itemnumber=" + itemnumber + "&popup=1#edititem";
69 var w = window.open(url);
70 var watchClose = setInterval(function() {
72 clearTimeout(watchClose);
73 $.getJSON('/cgi-bin/koha/catalogue/getitem-ajax.pl',
75 'itemnumber': itemnumber
78 var tds = $("#item_"+itemnumber+" td");
79 for(var i=2; i<tds.length; i++) {
80 var column = items_columns[i];
81 $(tds[i]).text(item[column]);
89 function CalcQtyToReceive() {
90 var qty = $("input[name='items_to_receive']:checked").length;
91 $("#quantity").val(qty);
94 function CheckNItems(n) {
95 $("input[name='items_to_receive']").each(function() {
96 $(this).attr('checked', false);
98 $("input[name='items_to_receive']:lt("+n+")").each(function () {
99 $(this).attr('checked', true);
104 $(document).ready(function() {
105 [% IF (AcqCreateItemReceiving) %]
106 cloneItemBlock(0, '[% UniqueItemFields %]');
107 [% ELSIF (AcqCreateItem == 'ordering') && not subscriptionid %]
108 $("input[name='items_to_receive']").change(function() {
112 $("#quantity").keyup(function() {
113 var qty = parseInt($("#quantity").val());
114 var qtyto = parseInt($("#quantity_to_receive").val());
116 $("#qtyrecerror").show();
118 $("#qtyrecerror").hide();
120 CheckNItems($(this).val());
127 <body id="acq_orderreceive" class="acq">
128 [% INCLUDE 'header.inc' %]
129 [% INCLUDE 'acquisitions-search.inc' %]
131 <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>
133 <div id="doc3" class="yui-t2">
139 <h1>Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]] [% END %] (order #[% ordernumber %])</h1>
142 <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
144 <div class="yui-u first">
145 <div class="error" style="display:none"></div>
147 <fieldset class="rows">
148 <legend>Catalog details</legend>
149 <ol><li><span class="label">Title: </span><span class="title">[% title |html %]</span></li>
150 <li> <span class="label">Author: </span>
152 <li><span class="label">Copyright: </span>
153 [% copyrightdate %]</li>
154 <li> <span class="label">ISBN: </span>
156 <li> <span class="label">Series: </span>
157 [% seriestitle %]</li>
161 [% IF ( suggestionid ) %]
162 <fieldset class="rows">
163 <legend>Suggestion</legend>
166 <span class="label">Suggested by: </span>
167 [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">suggestion #[% suggestionid %]</a>)
173 [% IF (AcqCreateItemReceiving) %]
174 <div id="items_list" style="display:none">
175 <p><b>Items list</b></p>
176 <div style="width:100%;overflow:auto;">
183 <th>Home library</th>
184 <th>Holding library</th>
185 <th>Not for loan</th>
190 <th>Stock number</th>
191 <th>Collection code</th>
203 [% UNLESS subscriptionid %]
204 <fieldset class="rows" id="itemfieldset">
205 <legend>Item</legend>
206 [% IF ( NoACQframework ) %]
208 No ACQ framework, using default. You should create a
209 framework with code ACQ, the items framework would be
213 <div id="outeritemblock"></div>
216 [% ELSIF (AcqCreateItem == 'ordering') %]
217 [% IF (items.size) %]
219 <div style="width:100%;overflow:auto">
227 <th>Holding branch</th>
228 <th>Not for loan</th>
233 <th>Stock number</th>
234 <th>Collection code</th>
241 [% FOREACH item IN items %]
242 <tr id="item_[% item.itemnumber %]">
243 <td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td>
244 <td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">Edit</a></td>
245 <td>[% item.barcode %]</td>
246 <td>[% item.homebranchname %]</td>
247 <td>[% item.holdingbranchname %]</td>
248 <td>[% item.notforloan %]</td>
249 <td>[% item.restricted %]</td>
250 <td>[% item.location %]</td>
251 <td>[% item.itemcallnumber %]</td>
252 <td>[% item.copynumber %]</td>
253 <td>[% item.stocknumber %]</td>
254 <td>[% item.collection %]</td>
255 <td>[% item.itemtype %]</td>
256 <td>[% item.materials %]</td>
257 <td>[% item.itemnotes %]</td>
265 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
266 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
267 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
268 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
269 <input type="hidden" name="datereceived" value="[% datereceived_iso %]" />
270 <input type="hidden" name="gstrate" value="[% gstrate %]" />
273 <fieldset class="rows">
274 <legend>Accounting details</legend>
276 <li><label for="datereceived">Date received: </label><span> [% datereceived %] </span></li>
277 <li><label for="bookfund">Budget: </label><span> [% bookfund %] </span></li>
278 <li><label for="creator">Created by: </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %]No name[% END %]</span></li>
279 <li><label for="quantity_to_receive">Quantity to receive: </label><span class="label">
280 [% IF ( edit and not subscriptionid) %]
281 <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
283 <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
286 <li><label for="quantity">Quantity received: </label>
287 [% IF (AcqCreateItemReceiving) %]
288 [% IF ( subscriptionid ) %]
289 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="1" />
291 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" />
294 [% IF ( quantityreceived ) %]
296 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived %]" />
297 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
300 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
302 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
304 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
307 [% IF ( subscriptionid ) %]
308 <input type="text" readonly="readonly" id="quantity" size="20" name="quantityrec" value="1" />
310 <input type="text" id="quantity" size="20" name="quantityrec" value="1" />
312 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
314 <div id="qtyrecerror" style="display:none">
315 <p class="error">Warning, you have entered more items than expected.
316 Items will not be created.</p>
318 [% END %][%# IF (AcqCreateItemReceiving) %]
320 <li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /></li>
321 <li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /></li>
322 <li><label for="cost">Actual cost:</label>
323 [% IF ( unitprice ) %]
324 <input type="text" size="20" name="cost" id="cost" value="[% unitprice %]" />
326 <input type="text" size="20" name="cost" id="cost" value="[% ecost %]" />
328 <label for="note">Notes: </label><textarea name="note" width="40" rows="8" >[% notes %]</textarea>
332 </div><div class="yui-g"><fieldset class="action">
333 <input type="submit" value="Save" class="button" accesskey="w" />
334 <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Cancel</a>
335 </fieldset></div> </form>
337 This ordernumber does not exist.
343 [% INCLUDE 'acquisitions-menu.inc' %]
346 [% INCLUDE 'intranet-bottom.inc' %]