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 58-69
Link Here
|
58 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
59 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
59 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
60 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
60 |
"aoColumnDefs": [ |
61 |
"aoColumnDefs": [ |
61 |
{ "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false }, |
62 |
{ "aTargets": [ 4, -1 ], "bSortable": false, "bSearchable": false }, |
62 |
], |
63 |
], |
63 |
"aoColumns": [ |
64 |
"aoColumns": [ |
64 |
{ "sType": "num-html" }, |
65 |
{ "sType": "num-html" }, |
65 |
{ "sType": "num-html" }, |
66 |
{ "sType": "num-html" }, |
66 |
{ "sType": "html" }, |
67 |
{ "sType": "html" }, |
|
|
68 |
{ "sType": "html" }, |
69 |
null, |
67 |
null, |
70 |
null, |
68 |
null, |
71 |
null, |
69 |
null, |
72 |
null, |
Lines 298-333
Link Here
|
298 |
|
301 |
|
299 |
|
302 |
|
300 |
[% IF ( loop_received ) %] |
303 |
[% IF ( loop_received ) %] |
|
|
304 |
[% SET funds = {} %] |
305 |
[% SET estimated_total = 0 %] |
306 |
|
307 |
[% FOREACH loop_receive IN loop_received %] |
308 |
[% SET estimated_total = estimated_total + ( loop_receive.ecost * loop_receive.quantityreceived ) %] |
309 |
[% SET funds.${ loop_receive.budget.budget_name }.estimated = funds.${ loop_receive.budget.budget_name }.estimated + ( loop_receive.ecost * loop_receive.quantityreceived )%] |
310 |
[% SET funds.${ loop_receive.budget.budget_name }.actual = funds.${ loop_receive.budget.budget_name }.actual + loop_receive.total %] |
311 |
[% END %] |
312 |
|
301 |
<form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform"> |
313 |
<form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform"> |
302 |
<table id="receivedt"> |
314 |
<table id="receivedt"> |
303 |
<thead> |
315 |
<thead> |
304 |
<tr> |
316 |
<tr> |
305 |
<th>Basket</th> |
317 |
<th>Basket</th> |
306 |
<th>Order line</th> |
318 |
<th>Order Line</th> |
307 |
<th>Summary</th> |
319 |
<th>Holds</th> |
308 |
<th>View record</th> |
320 |
<th>Summary</th> |
309 |
<th>Quantity</th> |
321 |
<th>View record</th> |
310 |
<th>Est cost</th> |
322 |
<th>Quantity</th> |
311 |
<th>Actual cost</th> |
323 |
<th>Fund</th> |
312 |
<th>TOTAL</th> |
324 |
<th>Est cost</th> |
|
|
325 |
<th>Actual cost</th> |
326 |
<th>TOTAL</th> |
313 |
<th></th> |
327 |
<th></th> |
314 |
</tr> |
328 |
</tr> |
315 |
</thead> |
329 |
</thead> |
316 |
<tfoot> |
330 |
<tfoot> |
|
|
331 |
[% FOREACH key IN funds.keys.sort %] |
332 |
<tr> |
333 |
<td colspan="6" class="total"> </td> |
334 |
<td><i>Subtotal for</i> [% key %]</td> |
335 |
<td>[% currency( funds.$key.estimated ) %]</td> |
336 |
<td>[% currency( funds.$key.actual ) %]</td> |
337 |
<td> </td> |
338 |
<td> </td> |
339 |
</tr> |
340 |
[% END %] |
317 |
<tr> |
341 |
<tr> |
318 |
<th colspan="7" class="total">Total tax exc.</th> |
342 |
<th colspan="9" class="total">Total tax exc.</th> |
319 |
<th>[% total_gste %]</th> |
343 |
<th>[% total_gste %]</th> |
320 |
<th></th> |
344 |
<th></th> |
321 |
</tr> |
345 |
</tr> |
322 |
[% FOREACH book_foot IN book_foot_loop %] |
346 |
[% FOREACH book_foot IN book_foot_loop %] |
323 |
<tr> |
347 |
<tr> |
324 |
<th colspan="7">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th> |
348 |
<th colspan="9">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th> |
325 |
<th>[% book_foot.value %]</th> |
349 |
<th>[% book_foot.value %]</th> |
326 |
<th></th> |
350 |
<th></th> |
327 |
</tr> |
351 |
</tr> |
328 |
[% END %] |
352 |
[% END %] |
329 |
<tr> |
353 |
<tr> |
330 |
<th colspan="7" class="total">Total tax inc.</th> |
354 |
<th colspan="9" class="total">Total tax inc.</th> |
331 |
<th>[% total_gsti %]</th> |
355 |
<th>[% total_gsti %]</th> |
332 |
<th></th> |
356 |
<th></th> |
333 |
</tr> |
357 |
</tr> |
Lines 337-342
Link Here
|
337 |
<tr> |
361 |
<tr> |
338 |
<td>[% loop_receive.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a>)</td> |
362 |
<td>[% loop_receive.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a>)</td> |
339 |
<td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td> |
363 |
<td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td> |
|
|
364 |
<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> |
340 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a> |
365 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a> |
341 |
[% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] |
366 |
[% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] |
342 |
[% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] |
367 |
[% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] |
Lines 349-354
Link Here
|
349 |
</td> |
374 |
</td> |
350 |
<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> |
375 |
<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> |
351 |
<td>[% loop_receive.quantityreceived %]</td> |
376 |
<td>[% loop_receive.quantityreceived %]</td> |
|
|
377 |
<td>[% loop_receive.budget.budget_name %]</td> |
352 |
<td>[% loop_receive.ecost %]</td> |
378 |
<td>[% loop_receive.ecost %]</td> |
353 |
<td>[% loop_receive.unitprice %]</td> |
379 |
<td>[% loop_receive.unitprice %]</td> |
354 |
<td>[% loop_receive.total %]</td> |
380 |
<td>[% loop_receive.total %]</td> |
355 |
- |
|
|