+[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'additem.js.inc' %]
<script type="text/javascript" src="[% themelang %]/js/additem.js"></script>
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
var tds = $("#item_"+itemnumber+" td");
for(var i=2; i<tds.length; i++) {
var column = items_columns[i];
- $(tds[i]).text(item[column]);
+ var text = item[column];
+ if ( text == null ) text = '';
+ $(tds[i]).text(text);
}
}
);
<th>Location</th>
<th>Call number</th>
<th>Copy number</th>
- <th>Stock number</th>
+ <th>Inventory number</th>
<th>Collection code</th>
<th>Item type</th>
<th>Materials</th>
<th>Location</th>
<th>Call number</th>
<th>Copy number</th>
- <th>Stock number</th>
+ <th>Inventory number</th>
<th>Collection code</th>
<th>Item type</th>
<th>Materials</th>
<input type="hidden" name="invoiceid" value="[% invoiceid %]" />
<input type="hidden" name="ordernumber" value="[% ordernumber %]" />
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
- <input type="hidden" name="datereceived" value="[% datereceived_iso %]" />
<input type="hidden" name="gstrate" value="[% gstrate %]" />
</div>
<div class="yui-u">
<fieldset class="rows">
<legend>Accounting details</legend>
- <ol>
- <li><label for="datereceived">Date received: </label><span> [% datereceived %] </span></li>
+ <ol>
+ <li>
+ <label for="datereceived">Date received: </label>
+ <input type="text" size="10" id="datereceived" name="datereceived" value="[% datereceived | $KohaDates %]" class="datepicker" />
+ </li>
<li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund">
<option value="">Keep current ([% budget_period_description %] - [% bookfund %])</option>
[% FOREACH period IN budget_loop %]
<li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /></li>
<li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /></li>
<li><label for="cost">Actual cost:</label>
- [% IF ( unitprice ) %]
+ [% IF ( unitprice > 0 ) %]
<input type="text" size="20" name="cost" id="cost" value="[% unitprice %]" />
[% ELSE %]
<input type="text" size="20" name="cost" id="cost" value="[% ecost %]" />
[% END %]</li>
<li><label for="order_internalnote">Internal note: </label><textarea name="order_internalnote" width="40" rows="8" >[% order_internalnote %]</textarea></li>
- <li><label for="order_vendornote">Vendor note: </label><textarea name="order_vendornote" width="40" rows="8" readonly="readonly">[% order_vendornote %]</textarea></li>
+ [% IF order_vendornote %]
+ <li><label for="order_vendornote">Vendor note: </label><span>[% order_vendornote %]</span></li>
+ [% END %]
</ol>
</fieldset>