|
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 40-51
Link Here
|
| 40 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
41 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
| 41 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
42 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
| 42 |
"aoColumnDefs": [ |
43 |
"aoColumnDefs": [ |
| 43 |
{ "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false }, |
44 |
{ "aTargets": [ 4, -1 ], "bSortable": false, "bSearchable": false }, |
| 44 |
], |
45 |
], |
| 45 |
"aoColumns": [ |
46 |
"aoColumns": [ |
| 46 |
{ "sType": "num-html" }, |
47 |
{ "sType": "num-html" }, |
| 47 |
{ "sType": "num-html" }, |
48 |
{ "sType": "num-html" }, |
| 48 |
{ "sType": "html" }, |
49 |
{ "sType": "html" }, |
|
|
50 |
{ "sType": "html" }, |
| 51 |
null, |
| 49 |
null, |
52 |
null, |
| 50 |
null, |
53 |
null, |
| 51 |
null, |
54 |
null, |
|
Lines 270-305
Link Here
|
| 270 |
|
273 |
|
| 271 |
|
274 |
|
| 272 |
[% IF ( loop_received ) %] |
275 |
[% IF ( loop_received ) %] |
|
|
276 |
[% SET funds = {} %] |
| 277 |
[% SET estimated_total = 0 %] |
| 278 |
|
| 279 |
[% FOREACH loop_receive IN loop_received %] |
| 280 |
[% SET estimated_total = estimated_total + ( loop_receive.ecost * loop_receive.quantityreceived ) %] |
| 281 |
[% SET funds.${ loop_receive.budget.budget_name }.estimated = funds.${ loop_receive.budget.budget_name }.estimated + ( loop_receive.ecost * loop_receive.quantityreceived )%] |
| 282 |
[% SET funds.${ loop_receive.budget.budget_name }.actual = funds.${ loop_receive.budget.budget_name }.actual + loop_receive.total %] |
| 283 |
[% END %] |
| 284 |
|
| 273 |
<form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform"> |
285 |
<form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform"> |
| 274 |
<table id="receivedt"> |
286 |
<table id="receivedt"> |
| 275 |
<thead> |
287 |
<thead> |
| 276 |
<tr> |
288 |
<tr> |
| 277 |
<th>Basket</th> |
289 |
<th>Basket</th> |
| 278 |
<th>Order line</th> |
290 |
<th>Order Line</th> |
| 279 |
<th>Summary</th> |
291 |
<th>Holds</th> |
| 280 |
<th>View record</th> |
292 |
<th>Summary</th> |
| 281 |
<th>Quantity</th> |
293 |
<th>View record</th> |
| 282 |
<th>Est cost</th> |
294 |
<th>Quantity</th> |
| 283 |
<th>Actual cost</th> |
295 |
<th>Fund</th> |
| 284 |
<th>TOTAL</th> |
296 |
<th>Est cost</th> |
|
|
297 |
<th>Actual cost</th> |
| 298 |
<th>TOTAL</th> |
| 285 |
<th></th> |
299 |
<th></th> |
| 286 |
</tr> |
300 |
</tr> |
| 287 |
</thead> |
301 |
</thead> |
| 288 |
<tfoot> |
302 |
<tfoot> |
|
|
303 |
[% FOREACH key IN funds.keys.sort %] |
| 304 |
<tr> |
| 305 |
<td colspan="6" class="total"> </td> |
| 306 |
<td><i>Subtotal for</i> [% key %]</td> |
| 307 |
<td>[% currency( funds.$key.estimated ) %]</td> |
| 308 |
<td>[% currency( funds.$key.actual ) %]</td> |
| 309 |
<td> </td> |
| 310 |
<td> </td> |
| 311 |
</tr> |
| 312 |
[% END %] |
| 289 |
<tr> |
313 |
<tr> |
| 290 |
<th colspan="7" class="total">Total tax exc.</th> |
314 |
<th colspan="9" class="total">Total tax exc.</th> |
| 291 |
<th>[% total_gste %]</th> |
315 |
<th>[% total_gste %]</th> |
| 292 |
<th></th> |
316 |
<th></th> |
| 293 |
</tr> |
317 |
</tr> |
| 294 |
[% FOREACH book_foot IN book_foot_loop %] |
318 |
[% FOREACH book_foot IN book_foot_loop %] |
| 295 |
<tr> |
319 |
<tr> |
| 296 |
<th colspan="7">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th> |
320 |
<th colspan="9">Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)</th> |
| 297 |
<th>[% book_foot.value %]</th> |
321 |
<th>[% book_foot.value %]</th> |
| 298 |
<th></th> |
322 |
<th></th> |
| 299 |
</tr> |
323 |
</tr> |
| 300 |
[% END %] |
324 |
[% END %] |
| 301 |
<tr> |
325 |
<tr> |
| 302 |
<th colspan="7" class="total">Total tax inc.</th> |
326 |
<th colspan="9" class="total">Total tax inc.</th> |
| 303 |
<th>[% total_gsti %]</th> |
327 |
<th>[% total_gsti %]</th> |
| 304 |
<th></th> |
328 |
<th></th> |
| 305 |
</tr> |
329 |
</tr> |
|
Lines 309-314
Link Here
|
| 309 |
<tr> |
333 |
<tr> |
| 310 |
<td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a></td> |
334 |
<td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_receive.basketno %]">[% loop_receive.basketno %]</a></td> |
| 311 |
<td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td> |
335 |
<td><a href="neworderempty.pl?ordernumber=[% loop_receive.ordernumber %]&booksellerid=[% booksellerid %]">[% loop_receive.ordernumber %]</a></td> |
|
|
336 |
<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> |
| 312 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a> |
337 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_receive.biblionumber %]">[% loop_receive.title |html %]</a> |
| 313 |
[% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] |
338 |
[% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] |
| 314 |
[% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] |
339 |
[% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] |
|
Lines 321-326
Link Here
|
| 321 |
</td> |
346 |
</td> |
| 322 |
<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> |
347 |
<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> |
| 323 |
<td>[% loop_receive.quantityreceived %]</td> |
348 |
<td>[% loop_receive.quantityreceived %]</td> |
|
|
349 |
<td>[% loop_receive.budget.budget_name %]</td> |
| 324 |
<td>[% loop_receive.ecost %]</td> |
350 |
<td>[% loop_receive.ecost %]</td> |
| 325 |
<td>[% loop_receive.unitprice %]</td> |
351 |
<td>[% loop_receive.unitprice %]</td> |
| 326 |
<td>[% loop_receive.total %]</td> |
352 |
<td>[% loop_receive.total %]</td> |
| 327 |
- |
|
|