Lines 1-6
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
3 |
[% USE Price %] |
3 |
[% USE Price %] |
|
|
4 |
[% USE TablesSettings %] |
4 |
[% SET footerjs = 1 %] |
5 |
[% SET footerjs = 1 %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>Koha › Reports › Orders by fund</title> |
7 |
<title>Koha › Reports › Orders by fund</title> |
Lines 23-35
Link Here
|
23 |
[% END %] |
24 |
[% END %] |
24 |
|
25 |
|
25 |
[% IF ( get_orders ) %] |
26 |
[% IF ( get_orders ) %] |
26 |
<div class="results"> |
|
|
27 |
[% IF ( total ) %] |
28 |
Orders found: [% total | html %] |
29 |
[% ELSE %] |
30 |
No order found |
31 |
[% END %] |
32 |
</div> |
33 |
|
27 |
|
34 |
[% IF ( ordersloop ) %]<table id="funds"> |
28 |
[% IF ( ordersloop ) %]<table id="funds"> |
35 |
<thead> |
29 |
<thead> |
Lines 150-158
Link Here
|
150 |
|
144 |
|
151 |
[% MACRO jsinclude BLOCK %] |
145 |
[% MACRO jsinclude BLOCK %] |
152 |
[% INCLUDE 'datatables.inc' %] |
146 |
[% INCLUDE 'datatables.inc' %] |
|
|
147 |
[% INCLUDE 'columns_settings.inc' %] |
153 |
<script> |
148 |
<script> |
|
|
149 |
var columns_settings = [% TablesSettings.GetColumns( 'reports', 'orders_by_fund', 'funds-table', 'json' ) | $raw %]; |
150 |
[% SET table_settings = TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table' ) %]; |
154 |
$(document).ready( function () { |
151 |
$(document).ready( function () { |
155 |
$('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"})); |
152 |
var funds_table = KohaTable("funds", { |
|
|
153 |
"columnDefs": [ |
154 |
{ "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] }, |
155 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
156 |
], |
157 |
"pageLength": [% table_settings.default_display_length | html %], |
158 |
"order": [[ [% table_settings.default_sort_order | html %], 'asc']], |
159 |
'autoWidth': false, |
160 |
}, columns_settings ); |
156 |
|
161 |
|
157 |
showallbudgets = $('#budgetfilter').html(); |
162 |
showallbudgets = $('#budgetfilter').html(); |
158 |
$('#budgetfilter .b_inactive').remove(); |
163 |
$('#budgetfilter .b_inactive').remove(); |
159 |
- |
|
|