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 var text = item[column];
73 if ( text == null ) text = '';
82 function CalcQtyToReceive() {
83 var qty = $("input[name='items_to_receive']:checked").length;
84 $("#quantity").val(qty);
87 function CheckNItems(n) {
88 $("input[name='items_to_receive']").each(function() {
89 $(this).attr('checked', false);
91 $("input[name='items_to_receive']:lt("+n+")").each(function () {
92 $(this).attr('checked', true);
97 $(document).ready(function() {
98 [% IF (AcqCreateItemReceiving) %]
99 cloneItemBlock(0, '[% UniqueItemFields %]');
100 [% ELSIF (AcqCreateItem == 'ordering') && not subscriptionid %]
101 $("input[name='items_to_receive']").change(function() {
105 $("#quantity").keyup(function() {
106 var qty = parseInt($("#quantity").val());
107 var qtyto = parseInt($("#quantity_to_receive").val());
109 $("#qtyrecerror").show();
111 $("#qtyrecerror").hide();
113 CheckNItems($(this).val());
120 <body id="acq_orderreceive" class="acq">
121 [% INCLUDE 'header.inc' %]
122 [% INCLUDE 'acquisitions-search.inc' %]
124 <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>
126 <div id="doc3" class="yui-t2">
132 <h1>Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]] [% END %] (order #[% ordernumber %])</h1>
135 <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
137 <div class="yui-u first">
138 <div class="error" style="display:none"></div>
140 <fieldset class="rows">
141 <legend>Catalog details</legend>
142 <ol><li><span class="label">Title: </span><span class="title">[% title |html %]</span></li>
143 <li> <span class="label">Author: </span>
145 <li><span class="label">Copyright: </span>
146 [% copyrightdate %]</li>
147 <li> <span class="label">ISBN: </span>
149 <li> <span class="label">Series: </span>
150 [% seriestitle %]</li>
154 [% IF ( suggestionid ) %]
155 <fieldset class="rows">
156 <legend>Suggestion</legend>
159 <span class="label">Suggested by: </span>
160 [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">suggestion #[% suggestionid %]</a>)
166 [% IF (AcqCreateItemReceiving) %]
167 <div id="items_list" style="display:none">
168 <p><b>Items list</b></p>
169 <div style="width:100%;overflow:auto;">
176 <th>Home library</th>
177 <th>Holding library</th>
178 <th>Not for loan</th>
183 <th>Inventory number</th>
184 <th>Collection code</th>
196 [% UNLESS subscriptionid %]
197 <fieldset class="rows" id="itemfieldset">
198 <legend>Item</legend>
199 [% IF ( NoACQframework ) %]
201 No ACQ framework, using default. You should create a
202 framework with code ACQ, the items framework would be
206 <div id="outeritemblock"></div>
209 [% ELSIF (AcqCreateItem == 'ordering') %]
210 [% IF (items.size) %]
212 <div style="width:100%;overflow:auto">
220 <th>Holding branch</th>
221 <th>Not for loan</th>
226 <th>Inventory number</th>
227 <th>Collection code</th>
234 [% FOREACH item IN items %]
235 <tr id="item_[% item.itemnumber %]">
236 <td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td>
237 <td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">Edit</a></td>
238 <td>[% item.barcode %]</td>
239 <td>[% item.homebranchname %]</td>
240 <td>[% item.holdingbranchname %]</td>
241 <td>[% item.notforloan %]</td>
242 <td>[% item.restricted %]</td>
243 <td>[% item.location %]</td>
244 <td>[% item.itemcallnumber %]</td>
245 <td>[% item.copynumber %]</td>
246 <td>[% item.stocknumber %]</td>
247 <td>[% item.collection %]</td>
248 <td>[% item.itemtype %]</td>
249 <td>[% item.materials %]</td>
250 <td>[% item.itemnotes %]</td>
258 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
259 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
260 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
261 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
262 <input type="hidden" name="datereceived" value="[% datereceived_iso %]" />
263 <input type="hidden" name="gstrate" value="[% gstrate %]" />
266 <fieldset class="rows">
267 <legend>Accounting details</legend>
269 <li><label for="datereceived">Date received: </label><span> [% datereceived %] </span></li>
270 <li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund">
271 <option value="">Keep current ([% budget_period_description %] - [% bookfund %])</option>
272 [% FOREACH period IN budget_loop %]
273 <optgroup label="[% period.description %]">
274 [% FOREACH fund IN period.funds %]
275 [% IF ( fund.b_sel ) %]
276 <option value="[% fund.b_id %]" selected="selected">[% fund.b_txt %]</option>
278 <option value="[% fund.b_id %]">[% fund.b_txt %]</option>
283 <li><label> </label><span>(Current: [% budget_period_description %] - [% bookfund %])</span></li>
284 <li><label for="creator">Created by: </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %]No name[% END %]</span></li>
285 <li><label for="quantity_to_receive">Quantity to receive: </label><span class="label">
286 [% IF ( edit and not subscriptionid) %]
287 <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
289 <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
292 <li><label for="quantity">Quantity received: </label>
293 [% IF (AcqCreateItemReceiving) %]
294 [% IF ( subscriptionid ) %]
295 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="1" />
297 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" />
300 [% IF ( quantityreceived ) %]
302 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived %]" />
303 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
306 <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
308 <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 %]" />
310 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
313 [% IF ( subscriptionid ) %]
314 <input type="text" readonly="readonly" id="quantity" size="20" name="quantityrec" value="1" />
316 <input type="text" id="quantity" size="20" name="quantityrec" value="1" />
318 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
320 <div id="qtyrecerror" style="display:none">
321 <p class="error">Warning, you have entered more items than expected.
322 Items will not be created.</p>
324 [% END %][%# IF (AcqCreateItemReceiving) %]
326 <li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /></li>
327 <li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /></li>
328 <li><label for="cost">Actual cost:</label>
329 [% IF ( unitprice ) %]
330 <input type="text" size="20" name="cost" id="cost" value="[% unitprice %]" />
332 <input type="text" size="20" name="cost" id="cost" value="[% ecost %]" />
334 <li><label for="order_internalnote">Internal note: </label><textarea name="order_internalnote" width="40" rows="8" >[% order_internalnote %]</textarea></li>
335 [% IF order_vendornote %]
336 <li><label for="order_vendornote">Vendor note: </label><span>[% order_vendornote %]</span></li>
342 </div><div class="yui-g"><fieldset class="action">
343 <input type="submit" value="Save" class="button" accesskey="w" />
344 <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&sticky_filters=1">Cancel</a>
345 </fieldset></div> </form>
347 This ordernumber does not exist.
353 [% INCLUDE 'acquisitions-menu.inc' %]
356 [% INCLUDE 'intranet-bottom.inc' %]