Bug 5917 : Converted templates
[koha.git] / koha-tt / intranet-tmpl / prog / en / modules / acqui / orderreceive.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/js/additem.js"> </script>
5 </head>
6 <body>
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'acquisitions-search.inc' %]
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% supplierid %]">[% name %]</a> &rsaquo; Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]][% END %] (order #[% ordernumber %])</div>
11
12 <div id="doc3" class="yui-t2">
13    
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17
18 <h1>Receive items from : [% name %] [% IF ( invoice ) %][[% invoice %]] [% END %] (order #[% ordernumber %])</h1>
19
20 [% IF ( count ) %]
21     <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post">
22 <div class="yui-g">
23 <div class="yui-u first">
24     
25     <fieldset class="rows">
26     <legend>Catalog Details</legend>
27     <ol><li><span class="label">Title: </span><span class="title">[% title |html %]</span></li>
28     <li> <span class="label">Author: </span>
29         [% author %]</li>
30     <li><span class="label">Copyright: </span>
31         [% copyrightdate %]</li>
32     <li> <span class="label">ISBN: </span>
33         [% isbn %]</li>
34     <li> <span class="label">Series: </span>
35         [% seriestitle %]</li>
36     </ol>
37         </fieldset>
38     [% IF ( items ) %]
39     <fieldset class="rows">
40         <legend>Item</legend>
41         [% IF ( NoACQframework ) %]
42             <p class="required">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</p>
43         [% END %]
44
45         [% FOREACH item IN items %]
46         <div id="outeritemblock">
47         <div id="itemblock">
48             <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li>
49                 <div class="subfield_line" style="[% iteminformatio.hidden %];" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
50                                 
51                     <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
52                     [% iteminformatio.marc_value %]
53                     <input type="hidden" name="itemid" value="1" />
54                     <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
55                     <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
56                     <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
57                     <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
58                     [% IF ( iteminformatio.ITEM_SUBFIELDS_ARE_NOT_REPEATABLE ) %]
59                         <span class="buttonPlus" onclick="CloneSubfield('subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]')">+</span>
60                     [% END %]
61             
62                 </div></li>
63             [% END %]
64             </ol>
65             <a style="cursor: pointer; color: grey; font-size: 180%;" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">+</a>
66             <a style="display:none; cursor: pointer; color: grey; font-size: 180%;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">-</a>
67         </div><!-- /iteminformation -->
68         </div>
69         
70         <input type="hidden" name="moditem" value="" /> 
71         <input type="hidden" name="tag" value="[% item.itemtagfield %]" />
72         <input type="hidden" name="subfield" value="[% item.itemtagsubfield %]" />
73         <input type="hidden" name="serial" value="[% item.serialid %]" />
74         <input type="hidden" name="bibnum" value="[% item.biblionumber %]" />
75         <input type="hidden" name="itemid" value="1" />
76         <input type="hidden" name="field_value" value="[% item.itemnumber %]" />
77         [% END %] <!-- /items -->
78     </fieldset>
79     [% END %] <!-- items -->
80     <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
81     <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
82     <input type="hidden" name="biblioitemnumber" value="[% biblioitemnumber %]" />
83     <input type="hidden" name="supplierid" value="[% supplierid %]" />
84     <input type="hidden" name="datereceived" value="[% datereceived_iso %]" />
85     <input type="hidden" name="freight" value="[% freight %]" />
86     <input type="hidden" name="gst" value="[% gst %]" />
87         </div>
88         <div class="yui-u">
89     <fieldset class="rows">
90     <legend>Accounting details</legend>
91        <ol>
92        <li><label for="datereceived">Date received: </label><span class="label"> [% datereceived %] </span></li>
93        <li><label for="quantity">Quantity to receive: </label><span class="label">
94            [% IF ( edit ) %]
95                <input type="text" name="quantity" value="[% quantity %]" />
96            [% ELSE %]
97                <input type="text" READONLY name="quantity" value="[% quantity %]" />
98            [% END %]
99            </span></li>
100         <li><label for="quantityrec">Quantity received: </label>
101             [% IF ( quantityreceived ) %]
102                 [% IF ( edit ) %]
103                     <input id="quantityrec" type="text" size="20" name="quantityrec" value="[% quantityreceived %]" />
104                     <input id="origquantityrec" READONLY type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
105                 [% ELSE %]
106                 [% IF ( items ) %]
107                     <input id="quantityrec" READONLY type="text" size="20" name="quantityrec" value="[% quantityreceivedplus1 %]" />
108                 [% ELSE %]
109                     <input id="quantityrec" type="text" size="20" name="quantityrec" value="[% quantityreceivedplus1 %]" />
110                 [% END %]
111                 <input id="origquantityrec" READONLY type="hidden" name="origquantityrec" value="[% quantityreceived %]" />
112                 [% END %]
113             [% ELSE %]
114                 [% IF ( items ) %]
115                     <input id="quantityrec" READONLY type="text" size="20" name="quantityrec" value="1" />
116                 [% ELSE %]
117                     <input id="quantityrec" type="text" size="20" name="quantityrec" value="1" />
118                 [% END %]
119                 <input id="origquantityrec" READONLY type="hidden" name="origquantityrec" value="0" />
120             [% END %]
121                 <!--    <input type="text" size="20" name="quantityrec" id="quantityrec" value="[% quantityreceived %]" /> --></li>
122         <li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /></li>
123         <li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /></li>
124         <li><label for="cost">Actual cost:</label>
125         [% IF ( unitprice ) %]
126          <input type="text" size="20" name="cost" id="cost" value="[% unitprice %]" />
127         [% ELSE %]
128             <input type="text" size="20" name="cost" id="cost" value="[% ecost %]" />
129         [% END %]</li></ol>
130         <label for="note">Notes: </label><textarea name="note" width="40" rows="8" >[% notes %]</textarea>
131         <input type="hidden" name="invoice" value="[% invoice %]" />
132     </fieldset>
133
134 </div>
135 </div><div class="yui-g"><fieldset class="action">
136         <input type="button"  value="Save" onclick="javascript:if(check_additem()) { this.form.submit(); } else { alert( _('Duplicate barcodes detected.  Please correct the errors and resubmit.') ); return false };" /> <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?supplierid=[% supplierid %]&amp;invoice=[% invoice %]&amp;gst=[% gst %]&amp;freight=[% freight %]">Cancel</a>
137 </fieldset></div>    </form>
138 [% ELSE %]
139 <div id="acqui_acquire_orderlist">
140     <table>
141     <tr>
142         <th>Basket</th>
143         <th>ISBN</th>
144         <th>Title</th>
145         <th>Author</th>
146         <th>Qty</th>
147         <th>Received</th>
148     </tr>
149     [% FOREACH loo IN loop %]
150         <tr>
151             <td>[% loo.basketno %]</td>
152             <td>[% loo.isbn %]</td>
153          <td><a href="orderreceive.pl?datereceived=[% loo.datereceived %]&amp;receive=[% loo.ordernumber %]&amp;biblio=[% loo.biblionumber %]&amp;invoice=[% loo.invoice %]&amp;freight=[% loo.freight %]&amp;gst=[% loo.gst %]&amp;id=[% loo.id %]">[% loo.title |html %]</a></td>
154             <td>[% loo.author %]</td>
155             <td>[% loo.quantity %]</td>
156             <td>[% loo.quantityreceived %]</td>
157         </tr>
158     [% END %]
159     </table>
160 </div>
161 [% END %]
162
163 </div>
164 </div>
165 <div class="yui-b">
166 [% INCLUDE 'acquisitions-menu.inc' %]
167 </div>
168 </div>
169 [% INCLUDE 'intranet-bottom.inc' %]