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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tt (-1 / +3 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
2
1
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Your fines and charges
3
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Your fines and charges
2
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
3
</head>
5
</head>
Lines 35-41 Link Here
35
            <tbody>
37
            <tbody>
36
                [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
38
                [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
37
                    [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
39
                    [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
38
                        <td>[% ACCOUNT_LINE.date %]</td>
40
                        <td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
39
                        <td>[% ACCOUNT_LINE.description %]
41
                        <td>[% ACCOUNT_LINE.description %]
40
                        [% IF ( ACCOUNT_LINE.title ) %][% ACCOUNT_LINE.title |html %][% END %]</td>
42
                        [% IF ( ACCOUNT_LINE.title ) %][% ACCOUNT_LINE.title |html %][% END %]</td>
41
                        [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
43
                        [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
(-)a/opac/opac-account.pl (-3 lines)
Lines 24-30 use C4::Members; Link Here
24
use C4::Circulation;
24
use C4::Circulation;
25
use C4::Auth;
25
use C4::Auth;
26
use C4::Output;
26
use C4::Output;
27
use C4::Dates qw/format_date/;
28
use warnings;
27
use warnings;
29
28
30
my $query = new CGI;
29
my $query = new CGI;
Lines 50-56 $template->param( BORROWER_INFO => \@bordat ); Link Here
50
my ( $total , $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
49
my ( $total , $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
51
50
52
for ( my $i = 0 ; $i < $numaccts ; $i++ ) {
51
for ( my $i = 0 ; $i < $numaccts ; $i++ ) {
53
    $accts->[$i]{'date'} = format_date( $accts->[$i]{'date'} );
54
    $accts->[$i]{'amount'} = sprintf( "%.2f", $accts->[$i]{'amount'} || '0.00');
52
    $accts->[$i]{'amount'} = sprintf( "%.2f", $accts->[$i]{'amount'} || '0.00');
55
    if ( $accts->[$i]{'amount'} >= 0 ) {
53
    if ( $accts->[$i]{'amount'} >= 0 ) {
56
        $accts->[$i]{'amountcredit'} = 1;
54
        $accts->[$i]{'amountcredit'} = 1;
57
- 

Return to bug 7743