@@ -, +, @@ --- .../prog/en/modules/members/boraccount.tt | 14 +++----------- members/boraccount.pl | 5 ----- 2 files changed, 3 insertions(+), 16 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -47,11 +47,7 @@ Note Amount Outstanding - [% IF ( actions_col ) %] - Actions - [% ELSE %] -   - [% END %] + Actions @@ -76,12 +72,8 @@ Print [% END %] Details - [% IF ( actions_col) %] - [% IF account.is_credit %] - Void - [% ELSE %] -   - [% END %] + [% IF account.is_credit %] + Void [% END %] --- a/members/boraccount.pl +++ a/members/boraccount.pl @@ -79,10 +79,6 @@ if($total <= 0){ $totalcredit = 1; } -my $actions_col = ( Koha::Account::Lines->search( - { borrowernumber => $patron->borrowernumber }, - { where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0; - if (C4::Context->preference('ExtendedPatronAttributes')) { my $attributes = GetBorrowerAttributes($borrowernumber); $template->param( @@ -96,7 +92,6 @@ $template->param( finesview => 1, total => sprintf("%.2f",$total), totalcredit => $totalcredit, - actions_col => $actions_col, accounts => \@accountlines, ); --