View | Details | Raw Unified | Return to bug 17700
Collapse All | Expand All

(-)a/admin/columns_settings.yml (+21 lines)
Lines 155-160 modules: Link Here
155
          columnname: stocknumber
155
          columnname: stocknumber
156
156
157
  members:
157
  members:
158
    fines:
159
      account-fines:
160
        -
161
          columnname: date
162
        -
163
          columnname: description
164
        -
165
          columnname: note
166
        -
167
          columnname: amount
168
          cannot_be_toggled: 1
169
          cannot_be_modified: 1
170
        -
171
          columnname: amountoutstanding
172
          cannot_be_toggled: 1
173
          cannot_be_modified: 1
174
        -
175
          columnname: actions
176
          cannot_be_toggled: 1
177
          cannot_be_modified: 1
178
158
    member:
179
    member:
159
      memberresultst:
180
      memberresultst:
160
        -
181
        -
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-4 / +6 lines)
Lines 1-23 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE ColumnsSettings %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
5
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
7
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
7
[% INCLUDE 'datatables.inc' %]
8
[% INCLUDE 'datatables.inc' %]
9
[% INCLUDE 'columns_settings.inc' %]
8
<script type="text/javascript">
10
<script type="text/javascript">
9
$(document).ready(function() {
11
$(document).ready(function() {
10
    var txtActivefilter = _("Filter paid transactions");
12
    var txtActivefilter = _("Filter paid transactions");
11
    var txtInactivefilter = _("Show all transactions");
13
    var txtInactivefilter = _("Show all transactions");
12
    var table_account_fines = $("#table_account_fines").dataTable($.extend(true, {}, dataTablesDefaults, {
14
    var columns_settings = [% ColumnsSettings.GetColumns('members', 'fines', 'account-fines', 'json') %];
15
    var table_account_fines = KohaTable("#table_account_fines", {
13
        "sPaginationType": "four_button",
16
        "sPaginationType": "four_button",
14
        'aaSorting': [[0, 'desc']],
17
        'aaSorting': [[0, 'desc']],
15
        "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
18
        "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
16
        "aoColumnDefs": [
19
        "aoColumnDefs": [
17
            { "sType": "title-string", "aTargets" : [ "title-string" ] },
20
            { "sType": "title-string", "aTargets" : [ "title-string" ] },
18
            { "bSortable": false, "bSearchable": false, "aTargets": [-1] }
21
            { "bSortable": false, "bSearchable": false, "aTargets": [-1] }
19
        ]
22
        ]
20
    }));
23
    }, columns_settings);
21
    $("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
24
    $("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
22
    $('#filter_transacs').click(function(e) {
25
    $('#filter_transacs').click(function(e) {
23
        e.preventDefault();
26
        e.preventDefault();
24
- 

Return to bug 17700