Lines 1-3
Link Here
|
|
|
1 |
[% USE currency = format('%.2f') -%] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Acquisitions › [% IF ( date ) %] |
3 |
<title>Koha › Acquisitions › [% IF ( date ) %] |
3 |
Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% formatteddatereceived %][% ELSE %]Receive orders from [% name %][% END %]</title> |
4 |
Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% formatteddatereceived %][% ELSE %]Receive orders from [% name %][% END %]</title> |
Lines 43-54
Link Here
|
43 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
44 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
44 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
45 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
45 |
"aoColumnDefs": [ |
46 |
"aoColumnDefs": [ |
46 |
{ "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false }, |
47 |
{ "aTargets": [ 4, -1 ], "bSortable": false, "bSearchable": false }, |
47 |
], |
48 |
], |
48 |
"aoColumns": [ |
49 |
"aoColumns": [ |
49 |
{ "sType": "num-html" }, |
50 |
{ "sType": "num-html" }, |
50 |
{ "sType": "num-html" }, |
51 |
{ "sType": "num-html" }, |
51 |
{ "sType": "html" }, |
52 |
{ "sType": "html" }, |
|
|
53 |
{ "sType": "html" }, |
54 |
null, |
52 |
null, |
55 |
null, |
53 |
null, |
56 |
null, |
54 |
null, |
57 |
null, |
Lines 261-296
Link Here
|
261 |
|
264 |
|
262 |
|
265 |
|
263 |
[% IF ( loop_received ) %] |
266 |
[% IF ( loop_received ) %] |
|
|
267 |
[% SET funds = {} %] |
268 |
[% SET estimated_total = 0 %] |
269 |
|
270 |
[% FOREACH loop_receive IN loop_received %] |
271 |
[% SET estimated_total = estimated_total + ( loop_receive.ecost * loop_receive.quantityreceived ) %] |
272 |
[% SET funds.${ loop_receive.budget.budget_name }.estimated = funds.${ loop_receive.budget.budget_name }.estimated + ( loop_receive.ecost * loop_receive.quantityreceived )%] |
273 |
[% SET funds.${ loop_receive.budget.budget_name }.actual = funds.${ loop_receive.budget.budget_name }.actual + loop_receive.total %] |
274 |
[% END %] |
275 |
|
264 |
<form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform"> |
276 |
<form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform"> |
265 |
<table id="receivedt"> |
277 |
<table id="receivedt"> |
266 |
<thead> |
278 |
<thead> |
267 |
<tr> |
279 |
<tr> |
268 |
<th>Basket</th> |
280 |
<th>Basket</th> |
269 |
<th>Order line</th> |
281 |
<th>Order Line</th> |
270 |
<th>Summary</th> |
282 |
<th>Holds</th> |
271 |
<th>View record</th> |
283 |
<th>Summary</th> |
272 |
<th>Quantity</th> |
284 |
<th>View record</th> |
273 |
<th>Est cost</th> |
285 |
<th>Quantity</th> |
274 |
<th>Actual cost</th> |
286 |
<th>Fund</th> |
275 |
<th>TOTAL</th> |
287 |
<th>Est cost</th> |
|
|
288 |
<th>Actual cost</th> |
289 |
<th>TOTAL</th> |
276 |
<th></th> |
290 |
<th></th> |
277 |
</tr> |
291 |
</tr> |
278 |
</thead> |
292 |
</thead> |
279 |
<tfoot> |
293 |
<tfoot> |
|
|
294 |
[% FOREACH key IN funds.keys.sort %] |
295 |
<tr> |
296 |
<td colspan="6" class="total"> </td> |
297 |
<td><i>Subtotal for</i> [% key %]</td> |
298 |
<td>[% currency( funds.$key.estimated ) %]</td> |
299 |
<td>[% currency( funds.$key.actual ) %]</td> |
300 |
<td> </td> |
301 |
<td> </td> |
302 |
</tr> |
303 |
[% END %] |
280 |
<tr> |
304 |
<tr> |
281 |
<th colspan="7" class="total">Total tax exc.</th> |
305 |
<th colspan="9" class="total">Total tax exc.</th> |
282 |
<th>[% total_gste %]</th> |
306 |
<th>[% total_gste %]</th> |
283 |
<th></th> |
307 |
<th></th> |
284 |
</tr> |
308 |
</tr> |
285 |
[% FOREACH book_foot IN book_foot_loop %] |
309 |
[% FOREACH book_foot IN book_foot_loop %] |
286 |
<tr> |
310 |
<tr> |
287 |
<th colspan="7">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th> |
311 |
<th colspan="9">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th> |
288 |
<th>[% book_foot.value %]</th> |
312 |
<th>[% book_foot.value %]</th> |
289 |
<th></th> |
313 |
<th></th> |
290 |
</tr> |
314 |
</tr> |
291 |
[% END %] |
315 |
[% END %] |
292 |
<tr> |
316 |
<tr> |
293 |
<th colspan="7" class="total">Total tax inc.</th> |
317 |
<th colspan="9" class="total">Total tax inc.</th> |
294 |
<th>[% total_gsti %]</th> |
318 |
<th>[% total_gsti %]</th> |
295 |
<th></th> |
319 |
<th></th> |
296 |
</tr> |
320 |
</tr> |
Lines 300-305
Link Here
|
300 |
<tr> |
324 |
<tr> |
301 |
<td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a></td> |
325 |
<td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a></td> |
302 |
<td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td> |
326 |
<td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td> |
|
|
327 |
<td>[% IF loop_receive.holds %]<span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.holds %]</a></span>[% END %]</td> |
303 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a> |
328 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a> |
304 |
[% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] |
329 |
[% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] |
305 |
[% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] |
330 |
[% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] |
Lines 312-317
Link Here
|
312 |
</td> |
337 |
</td> |
313 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_receive.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_receive.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> |
338 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_receive.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_receive.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> |
314 |
<td>[% loop_receive.quantityreceived %]</td> |
339 |
<td>[% loop_receive.quantityreceived %]</td> |
|
|
340 |
<td>[% loop_receive.budget.budget_name %]</td> |
315 |
<td>[% loop_receive.ecost %]</td> |
341 |
<td>[% loop_receive.ecost %]</td> |
316 |
<td>[% loop_receive.unitprice %]</td> |
342 |
<td>[% loop_receive.unitprice %]</td> |
317 |
<td>[% loop_receive.total %]</td> |
343 |
<td>[% loop_receive.total %]</td> |
318 |
- |
|
|