| Lines 3-8
          
      
      
        Link Here | 
        
          | 3 | [% USE KohaDates %] | 3 | [% USE KohaDates %] | 
        
          | 4 | [% USE Branches %] | 4 | [% USE Branches %] | 
        
          | 5 | [% USE AuthorisedValues %] | 5 | [% USE AuthorisedValues %] | 
            
              |  |  | 6 | [% USE ItemTypes %] | 
        
          | 6 | [% USE Price %] | 7 | [% USE Price %] | 
        
          | 7 | [% SET footerjs = 1 %] | 8 | [% SET footerjs = 1 %] | 
        
          | 8 | [% INCLUDE 'doc-head-open.inc' %] | 9 | [% INCLUDE 'doc-head-open.inc' %] | 
  
    | Lines 14-27
          
      
      
        Link Here | 
        
          | 14 | [% INCLUDE 'header.inc' %] | 15 | [% INCLUDE 'header.inc' %] | 
        
          | 15 | [% INCLUDE 'acquisitions-search.inc' %] | 16 | [% INCLUDE 'acquisitions-search.inc' %] | 
        
          | 16 |  | 17 |  | 
          
            
              | 17 | <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 | html %]">[% name | html %]</a> › Receive items from : [% name | html %] [% IF ( invoice ) %][[% invoice | html %]][% END %] (order #[% ordernumber | html %])</div> | 18 | <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=[% order.basket.booksellerid | html %]">[% name | html %]</a> › Receive items from : [% name | html %] [% IF ( invoice ) %][[% invoice | html %]][% END %] (order #[% order.ordernumber | html %])</div> | 
        
          | 18 |  | 19 |  | 
        
          | 19 | <div class="main container-fluid"> | 20 | <div class="main container-fluid"> | 
        
          | 20 |     <div class="row"> | 21 |     <div class="row"> | 
        
          | 21 |         <div class="col-sm-10 col-sm-push-2"> | 22 |         <div class="col-sm-10 col-sm-push-2"> | 
        
          | 22 |             <main> | 23 |             <main> | 
        
          | 23 |  | 24 |  | 
          
            
              | 24 | <h1>Receive items from : [% name | html %] [% IF ( invoice ) %][[% invoice | html %]] [% END %] (order #[% ordernumber | html %])</h1> | 25 | <h1>Receive items from : [% name | html %] [% IF ( invoice ) %][[% invoice | html %]] [% END %] (order #[% order.ordernumber | html %])</h1> | 
        
          | 25 |  | 26 |  | 
        
          | 26 | [% IF ( count ) %] | 27 | [% IF ( count ) %] | 
        
          | 27 |     <form action="/cgi-bin/koha/acqui/finishreceive.pl" class="noEnterSubmit" method="post" onsubmit="return Check(this);"> | 28 |     <form action="/cgi-bin/koha/acqui/finishreceive.pl" class="noEnterSubmit" method="post" onsubmit="return Check(this);"> | 
  
    | Lines 31-45
          
      
      
        Link Here | 
        
          | 31 |  | 32 |  | 
        
          | 32 |     <fieldset class="rows"> | 33 |     <fieldset class="rows"> | 
        
          | 33 |     <legend>Catalog details</legend> | 34 |     <legend>Catalog details</legend> | 
          
            
              | 34 |     <ol><li><span class="label">Title: </span><span class="title">[% title | html %]</span></li> | 35 |     <ol><li><span class="label">Title: </span><span class="title">[% order.biblio.title | html %]</span></li> | 
        
          | 35 |     <li> <span class="label">Author: </span> | 36 |     <li> <span class="label">Author: </span> | 
          
            
              | 36 |         [% author | html %]</li> | 37 |         [% order.biblio.author | html %]</li> | 
        
          | 37 |     <li><span class="label">Copyright: </span> | 38 |     <li><span class="label">Copyright: </span> | 
          
            
              | 38 |         [% copyrightdate | html %]</li> | 39 |         [% order.biblio.copyrightdate | html %]</li> | 
        
          | 39 |     <li> <span class="label">ISBN: </span> | 40 |     <li> <span class="label">ISBN: </span> | 
          
            
              | 40 |         [% isbn | html %]</li> | 41 |         [% order.biblio.biblioitem.isbn | html %]</li> | 
        
          | 41 |     <li> <span class="label">Series: </span> | 42 |     <li> <span class="label">Series: </span> | 
          
            
              | 42 |         [% seriestitle | html %]</li> | 43 |         [% order.biblio.seriestitle | html %]</li> | 
        
          | 43 |     </ol> | 44 |     </ol> | 
        
          | 44 | 	</fieldset> | 45 | 	</fieldset> | 
        
          | 45 |  | 46 |  | 
  
    | Lines 85-91
          
      
      
        Link Here | 
        
          | 85 |         </fieldset> | 86 |         </fieldset> | 
        
          | 86 |     [% END %] | 87 |     [% END %] | 
        
          | 87 |  | 88 |  | 
          
            
              | 88 |     [% IF subscriptionid and orders.count %] | 89 |     [% IF order.subscriptionid and orders.count %] | 
        
          | 89 |         <fieldset class="rows"> | 90 |         <fieldset class="rows"> | 
        
          | 90 |             <legend>Receipt history for this subscription</legend> | 91 |             <legend>Receipt history for this subscription</legend> | 
        
          | 91 |             <table id="orders"> | 92 |             <table id="orders"> | 
  
    | Lines 169-175
          
      
      
        Link Here | 
        
          | 169 |             </div> | 170 |             </div> | 
        
          | 170 |         </div> | 171 |         </div> | 
        
          | 171 |  | 172 |  | 
          
            
              | 172 |         [% UNLESS subscriptionid %] | 173 |         [% UNLESS order.subscriptionid %] | 
        
          | 173 |           <fieldset class="rows" id="itemfieldset"> | 174 |           <fieldset class="rows" id="itemfieldset"> | 
        
          | 174 |               <legend>Item</legend> | 175 |               <legend>Item</legend> | 
        
          | 175 |               [% IF ( NoACQframework ) %] | 176 |               [% IF ( NoACQframework ) %] | 
  
    | Lines 183-189
          
      
      
        Link Here | 
        
          | 183 |           </fieldset> | 184 |           </fieldset> | 
        
          | 184 |         [% END %] | 185 |         [% END %] | 
        
          | 185 |     [% ELSIF (AcqCreateItem == 'ordering') %] | 186 |     [% ELSIF (AcqCreateItem == 'ordering') %] | 
          
            
              | 186 |         [% IF (items.size) %] | 187 |         [% IF (items.count) %] | 
        
          | 187 |             <h5>Items</h5> | 188 |             <h5>Items</h5> | 
        
          | 188 |             <div style="width:100%;overflow:auto"> | 189 |             <div style="width:100%;overflow:auto"> | 
        
          | 189 |                 <table> | 190 |                 <table> | 
  
    | Lines 214-228
          
      
      
        Link Here | 
        
          | 214 |                                 <td>[% item.barcode | html %]</td> | 215 |                                 <td>[% item.barcode | html %]</td> | 
        
          | 215 |                                 <td>[% Branches.GetName( item.homebranch ) | html %]</td> | 216 |                                 <td>[% Branches.GetName( item.homebranch ) | html %]</td> | 
        
          | 216 |                                 <td>[% Branches.GetName( item.holdingbranch ) | html %]</td> | 217 |                                 <td>[% Branches.GetName( item.holdingbranch ) | html %]</td> | 
          
            
              | 217 |                                 <td>[% item.notforloan | html %]</td> | 218 |                                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %]</td> | 
            
              | 218 |                                 <td>[% item.restricted | html %]</td> | 219 |                                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %]</td> | 
            
              | 219 |                                 <td><span class="shelvingloc">[% item.location | html %]</span></td> | 220 |                                 <td><span class="shelvingloc">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</span></td> | 
        
          | 220 |                                 <td>[% item.itemcallnumber | html %]</td> | 221 |                                 <td>[% item.itemcallnumber | html %]</td> | 
        
          | 221 |                                 <td>[% item.copynumber | html %]</td> | 222 |                                 <td>[% item.copynumber | html %]</td> | 
        
          | 222 |                                 <td>[% item.stocknumber | html %]</td> | 223 |                                 <td>[% item.stocknumber | html %]</td> | 
          
            
              | 223 |                                 <td>[% item.collection | html %]</td> | 224 |                                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td> | 
            
              | 224 |                                 <td>[% item.itemtype | html %]</td> | 225 |                                 <td>[% ItemTypes.GetDescription( item.itype ) | html %]</td> | 
            
              | 225 |                                 <td>[% item.materials | html %]</td> | 226 |                                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.materials', authorised_value => item.materials ) | html %]</td> | 
        
          | 226 |                                 <td>[% item.itemnotes | html %]</td> | 227 |                                 <td>[% item.itemnotes | html %]</td> | 
        
          | 227 |                             </tr> | 228 |                             </tr> | 
        
          | 228 |                         [% END %] | 229 |                         [% END %] | 
  
    | Lines 231-240
          
      
      
        Link Here | 
        
          | 231 |             </div> | 232 |             </div> | 
        
          | 232 |         [% END %] | 233 |         [% END %] | 
        
          | 233 |     [% END %] | 234 |     [% END %] | 
          
            
              | 234 |     <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> | 235 |     <input type="hidden" name="biblionumber" value="[% order.biblionumber | html %]" /> | 
        
          | 235 |     <input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> | 236 |     <input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> | 
          
            
              | 236 |     <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" /> | 237 |     <input type="hidden" name="ordernumber" value="[% order.ordernumber | html %]" /> | 
            
              | 237 |     <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> | 238 |     <input type="hidden" name="booksellerid" value="[% order.basket.booksellerid | html %]" /> | 
        
          | 238 | 	</div> | 239 | 	</div> | 
        
          | 239 |     <div class="col-sm-6"> | 240 |     <div class="col-sm-6"> | 
        
          | 240 |     <fieldset class="rows"> | 241 |     <fieldset class="rows"> | 
  
    | Lines 245-251
          
      
      
        Link Here | 
        
          | 245 |                 <input type="text" size="10" id="datereceived" name="datereceived" value="[% datereceived | $KohaDates %]" class="datepicker" /> | 246 |                 <input type="text" size="10" id="datereceived" name="datereceived" value="[% datereceived | $KohaDates %]" class="datepicker" /> | 
        
          | 246 |             </li> | 247 |             </li> | 
        
          | 247 |        <li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund"> | 248 |        <li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund"> | 
          
            
              | 248 |             <option value="">Keep current ([% budget_period_description | html %] - [% bookfund | html %])</option> | 249 |             <option value="">Keep current ([% budget_period_description | html %] - [% order.fund.budget_name | html %])</option> | 
        
          | 249 |             [% FOREACH period IN budget_loop %] | 250 |             [% FOREACH period IN budget_loop %] | 
        
          | 250 |                 <optgroup label="[% period.description | html %]"> | 251 |                 <optgroup label="[% period.description | html %]"> | 
        
          | 251 |                 [% FOREACH fund IN period.funds %] | 252 |                 [% FOREACH fund IN period.funds %] | 
  
    | Lines 266-295
          
      
      
        Link Here | 
        
          | 266 |         </span> | 267 |         </span> | 
        
          | 267 |        </li> | 268 |        </li> | 
        
          | 268 |        <li><label for="quantity_to_receive">Quantity ordered: </label><span class="label"> | 269 |        <li><label for="quantity_to_receive">Quantity ordered: </label><span class="label"> | 
          
            
              | 269 |            [% IF edit or subscriptionid %] | 270 |            [% IF edit or order.subscriptionid %] | 
            
              | 270 |                <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity | html %]" /> | 271 |                <input type="text" id="quantity_to_receive" name="quantity" value="[% order.quantity | html %]" /> | 
        
          | 271 |            [% ELSE%] | 272 |            [% ELSE%] | 
          
            
              | 272 |                <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity | html %]" /> | 273 |                <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% order.quantity | html %]" /> | 
        
          | 273 |            [% END %] | 274 |            [% END %] | 
        
          | 274 |            </span></li> | 275 |            </span></li> | 
        
          | 275 |         <li><label for="quantity">Quantity received: </label> | 276 |         <li><label for="quantity">Quantity received: </label> | 
          
            
              | 276 |           [% IF subscriptionid %] | 277 |           [% IF order.subscriptionid %] | 
            
              | 277 |               <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantity | html %]" /> | 278 |               <input type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantity | html %]" /> | 
            
              | 278 |               <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived | html %]" /> | 279 |               <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" /> | 
        
          | 279 |           [% ELSIF AcqCreateItemReceiving %] | 280 |           [% ELSIF AcqCreateItemReceiving %] | 
        
          | 280 |               <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" /> | 281 |               <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" /> | 
        
          | 281 |           [% ELSE %] | 282 |           [% ELSE %] | 
          
            
              | 282 |             [% IF ( quantityreceived ) %] | 283 |             [% IF ( order.quantityreceived ) %] | 
        
          | 283 |                 [% IF ( edit ) %] | 284 |                 [% IF ( edit ) %] | 
          
            
              | 284 |                     <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived | html %]" /> | 285 |                     <input type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantityreceived | html %]" /> | 
            
              | 285 |                     <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived | html %]" /> | 286 |                     <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" /> | 
        
          | 286 |                 [% ELSE %] | 287 |                 [% ELSE %] | 
        
          | 287 |                     [% IF ( items ) %] | 288 |                     [% IF ( items ) %] | 
          
            
              | 288 |                         <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 | html %]" /> | 289 |                         <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantityreceived + 1 | html %]" /> | 
        
          | 289 |                     [% ELSE %] | 290 |                     [% ELSE %] | 
          
            
              | 290 |                         <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceivedplus1 | html %]" /> | 291 |                         <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived + 1 | html %]" /> | 
        
          | 291 |                     [% END %] | 292 |                     [% END %] | 
          
            
              | 292 |                     <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% quantityreceived | html %]" /> | 293 |                     <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" /> | 
        
          | 293 |                 [% END %] | 294 |                 [% END %] | 
        
          | 294 |             [% ELSE %] | 295 |             [% ELSE %] | 
        
          | 295 |                 <input type="text" id="quantity" size="20" name="quantityrec" value="1" /> | 296 |                 <input type="text" id="quantity" size="20" name="quantityrec" value="1" /> | 
  
    | Lines 299-311
          
      
      
        Link Here | 
        
          | 299 |                 <p class="error">Warning, you have entered more items than expected. | 300 |                 <p class="error">Warning, you have entered more items than expected. | 
        
          | 300 |                 Items will not be created.</p> | 301 |                 Items will not be created.</p> | 
        
          | 301 |             </div> | 302 |             </div> | 
          
            
              | 302 |           [% END %][%# IF (subscriptionid) ELSIF (AcqCreateItemReceiving) %] | 303 |           [% END %][%# IF (order.subscriptionid) ELSIF (AcqCreateItemReceiving) %] | 
        
          | 303 | 		</li> | 304 | 		</li> | 
        
          | 304 |  | 305 |  | 
        
          | 305 |         [% IF ( gst_values ) %] | 306 |         [% IF ( gst_values ) %] | 
        
          | 306 |             <li> | 307 |             <li> | 
        
          | 307 |                 <label for="tax_rate">Tax rate: </label> | 308 |                 <label for="tax_rate">Tax rate: </label> | 
        
          | 308 |                 <select name="tax_rate" id="tax_rate"> | 309 |                 <select name="tax_rate" id="tax_rate"> | 
            
              |  |  | 310 |                 [% tax_rate = order.tax_rate_on_receiving || order.tax_rate_on_ordering %] | 
        
          | 309 |                 [% FOREACH gst IN gst_values %] | 311 |                 [% FOREACH gst IN gst_values %] | 
        
          | 310 |                     [% IF gst.option == tax_rate %] | 312 |                     [% IF gst.option == tax_rate %] | 
        
          | 311 |                         <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option> | 313 |                         <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option> | 
  
    | Lines 319-334
          
      
      
        Link Here | 
        
          | 319 |             <input type="hidden" name="tax_rate" value="0" /> | 321 |             <input type="hidden" name="tax_rate" value="0" /> | 
        
          | 320 |         [% END %] | 322 |         [% END %] | 
        
          | 321 |  | 323 |  | 
          
            
              | 322 |         <li><label for="rrp">Retail price: </label>[% rrp | $Price %] <span class="hint">(adjusted for [% active_currency.currency | html %], [% IF (invoiceincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])</span></li> | 324 |         <li><label for="rrp">Retail price: </label> | 
            
              |  |  | 325 |             [% IF (invoiceincgst == 1) %] | 
            
              | 326 |                 [% order.rrp_tax_included | $Price %]<span class="hint">(adjusted for [% active_currency.currency | html %],tax inclusive)</span></li> | 
            
              | 327 |             [% ELSE %] | 
            
              | 328 |                 [% order.rrp_tax_excluded | $Price %]<span class="hint">(adjusted for [% active_currency.currency | html %],tax exclusive)</span></li> | 
            
              | 329 |             [% END %] | 
        
          | 323 |         <li> | 330 |         <li> | 
        
          | 324 |             <label for="replacementprice">Replacement price:</label> | 331 |             <label for="replacementprice">Replacement price:</label> | 
          
            
              | 325 |             <input type="text" size="20" name="replacementprice" id="replacementprice" value="[% replacementprice | $Price on_editing => 1 %]" /> | 332 |             <input type="text" size="20" name="replacementprice" id="replacementprice" value="[% order.replacementprice | $Price on_editing => 1 %]" /> | 
        
          | 326 |         </li> | 333 |         </li> | 
          
            
              | 327 |         <li><label for="ecost">Budgeted cost: </label>[% ecost | $Price %] <span class="hint">[% IF (invoiceincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]</span></li> | 334 |         <li> | 
            
              |  |  | 335 |             [% IF (invoiceincgst) %] | 
            
              | 336 |                 <label for="ecost">Budgeted cost: </label>[% order.ecost_tax_included | $Price %] <span class="hint">(tax inclusive)</span> | 
            
              | 337 |             [% ELSE %] | 
            
              | 338 |                 <label for="ecost">Budgeted cost: </label>[% order.ecost_tax_excluded | $Price %] <span class="hint">(tax exclusive)</span> | 
            
              | 339 |             [% END %] | 
            
              | 340 |             </li> | 
        
          | 328 |         <li> | 341 |         <li> | 
        
          | 329 |             <label for="unitprice">Actual cost:</label> | 342 |             <label for="unitprice">Actual cost:</label> | 
          
            
              | 330 |             <input type="text" size="20" name="unitprice" id="unitprice" value="[% unitprice | $Price on_editing => 1 %]" /> | 343 |             [% IF (invoiceincgst) %] | 
            
              | 331 |             <span class="hint">[% IF (invoiceincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]</span> | 344 |                 <input type="text" size="20" name="unitprice" id="unitprice" value="[% order.unitprice_tax_included | $Price on_editing => 1 %]" /> <span class="hint">(tax inclusive)</span> | 
            
              |  |  | 345 |             [% ELSE %] | 
            
              | 346 |                 <input type="text" size="20" name="unitprice" id="unitprice" value="[% order.unitprice_tax_excluded | $Price on_editing => 1 %]" /> <span class="hint">(tax exclusive)</span> | 
            
              | 347 |             [% END %] | 
        
          | 332 |             <label style="font-weight: inherit; float:none;"><input type="checkbox" name="change_currency">Change currency</label> | 348 |             <label style="font-weight: inherit; float:none;"><input type="checkbox" name="change_currency">Change currency</label> | 
        
          | 333 |         </li> | 349 |         </li> | 
        
          | 334 |         <li id="select_currency"> | 350 |         <li id="select_currency"> | 
  
    | Lines 464-470
          
      
      
        Link Here | 
        
          | 464 |         $(document).ready(function() { | 480 |         $(document).ready(function() { | 
        
          | 465 |             [% IF (AcqCreateItemReceiving) %] | 481 |             [% IF (AcqCreateItemReceiving) %] | 
        
          | 466 |                 cloneItemBlock(0, '[% UniqueItemFields | html %]'); | 482 |                 cloneItemBlock(0, '[% UniqueItemFields | html %]'); | 
          
            
              | 467 |             [% ELSIF (AcqCreateItem == 'ordering') && not subscriptionid %] | 483 |             [% ELSIF (AcqCreateItem == 'ordering') && not order.subscriptionid %] | 
        
          | 468 |                 $("input[name='items_to_receive']").change(function() { | 484 |                 $("input[name='items_to_receive']").change(function() { | 
        
          | 469 |                     CalcQtyToReceive(); | 485 |                     CalcQtyToReceive(); | 
        
          | 470 |                 }); | 486 |                 }); | 
            
              | 471 | -  |  |  |