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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-2 / +2 lines)
Lines 47-53 Link Here
47
          <th>Note</th>
47
          <th>Note</th>
48
          <th>Amount</th>
48
          <th>Amount</th>
49
          <th>Outstanding</th>
49
          <th>Outstanding</th>
50
          [% IF ( reverse_col ) %]
50
          [% IF ( actions_col ) %]
51
              <th>Actions</th>
51
              <th>Actions</th>
52
          [% ELSE %]
52
          [% ELSE %]
53
              <th>&nbsp;</th>
53
              <th>&nbsp;</th>
Lines 76-82 Link Here
76
          <a target="_blank" href="printinvoice.pl?action=print&amp;accountlines_id=[% account.accountlines_id | html %]&amp;borrowernumber=[% account.borrowernumber | html %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
76
          <a target="_blank" href="printinvoice.pl?action=print&amp;accountlines_id=[% account.accountlines_id | html %]&amp;borrowernumber=[% account.borrowernumber | html %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
77
        [% END %]
77
        [% END %]
78
        <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id | html %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>
78
        <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id | html %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>
79
        [% IF ( reverse_col) %]
79
        [% IF ( actions_col) %]
80
          [% IF account.is_credit %]
80
          [% IF account.is_credit %]
81
              <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id | html %]&amp;borrowernumber=[% account.borrowernumber | html %]" class="btn btn-default btn-xs void"><i class="fa fa-ban"></i> Void</a>
81
              <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id | html %]&amp;borrowernumber=[% account.borrowernumber | html %]" class="btn btn-default btn-xs void"><i class="fa fa-ban"></i> Void</a>
82
          [% ELSE %]
82
          [% ELSE %]
(-)a/members/boraccount.pl (-3 / +2 lines)
Lines 79-85 if($total <= 0){ Link Here
79
        $totalcredit = 1;
79
        $totalcredit = 1;
80
}
80
}
81
81
82
my $reverse_col = ( Koha::Account::Lines->search(
82
my $actions_col = ( Koha::Account::Lines->search(
83
    { borrowernumber => $patron->borrowernumber },
83
    { borrowernumber => $patron->borrowernumber },
84
    { where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0;
84
    { where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0;
85
85
Lines 96-102 $template->param( Link Here
96
    finesview           => 1,
96
    finesview           => 1,
97
    total               => sprintf("%.2f",$total),
97
    total               => sprintf("%.2f",$total),
98
    totalcredit         => $totalcredit,
98
    totalcredit         => $totalcredit,
99
    reverse_col         => $reverse_col,
99
    actions_col         => $actions_col,
100
    accounts            => \@accountlines,
100
    accounts            => \@accountlines,
101
);
101
);
102
102
103
- 

Return to bug 20629