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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-3 / +7 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
3
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 10-16 $(document).ready(function() { Link Here
10
    var table_account_fines = $("#table_account_fines").dataTable($.extend(true, {}, dataTablesDefaults, {
11
    var table_account_fines = $("#table_account_fines").dataTable($.extend(true, {}, dataTablesDefaults, {
11
        "sPaginationType": "four_button",
12
        "sPaginationType": "four_button",
12
        'aaSorting': [[0, 'desc']],
13
        'aaSorting': [[0, 'desc']],
13
        "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>'
14
        "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
15
        "aoColumnDefs": [
16
            { "sType": "title-string", "aTargets" : [ "title-string" ] }
17
        ]
14
    }));
18
    }));
15
    $("#filter_c").html('<p><a href="#" id="filter_transacs">'+txtActivefilter+'</a>');
19
    $("#filter_c").html('<p><a href="#" id="filter_transacs">'+txtActivefilter+'</a>');
16
    $('#filter_transacs').click(function(e) {
20
    $('#filter_transacs').click(function(e) {
Lines 55-61 $(document).ready(function() { Link Here
55
<table id="table_account_fines">
59
<table id="table_account_fines">
56
    <thead>
60
    <thead>
57
      <tr>
61
      <tr>
58
          <th>Date</th>
62
          <th class="title-string">Date</th>
59
          <th>Description of charges</th>
63
          <th>Description of charges</th>
60
          <th>Note</th>
64
          <th>Note</th>
61
          <th>Amount</th>
65
          <th>Amount</th>
Lines 71-77 $(document).ready(function() { Link Here
71
  [% FOREACH account IN accounts %]
75
  [% FOREACH account IN accounts %]
72
76
73
   [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
77
   [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
74
      <td>[% account.date %]</td>
78
   <td><span title="[% account.date %]">[% account.date |$KohaDates %]</span></td>
75
      <td>
79
      <td>
76
        [% SWITCH account.accounttype %]
80
        [% SWITCH account.accounttype %]
77
          [% CASE 'Pay' %]Payment, thanks
81
          [% CASE 'Pay' %]Payment, thanks
(-)a/members/boraccount.pl (-3 lines)
Lines 27-33 use warnings; Link Here
27
27
28
use C4::Auth;
28
use C4::Auth;
29
use C4::Output;
29
use C4::Output;
30
use C4::Dates qw/format_date/;
31
use CGI;
30
use CGI;
32
use C4::Members;
31
use C4::Members;
33
use C4::Branch;
32
use C4::Branch;
Lines 84-90 foreach my $accountline ( @{$accts}) { Link Here
84
        $accountline->{amountoutstandingcredit} = 1;
83
        $accountline->{amountoutstandingcredit} = 1;
85
    }
84
    }
86
85
87
    $accountline->{date} = format_date($accountline->{date});
88
    $accountline->{amount} = sprintf '%.2f', $accountline->{amount};
86
    $accountline->{amount} = sprintf '%.2f', $accountline->{amount};
89
    $accountline->{amountoutstanding} = sprintf '%.2f', $accountline->{amountoutstanding};
87
    $accountline->{amountoutstanding} = sprintf '%.2f', $accountline->{amountoutstanding};
90
    if ($accountline->{accounttype} =~ /^Pay/) {
88
    if ($accountline->{accounttype} =~ /^Pay/) {
91
- 

Return to bug 13525