From 146f1ca3a6e8f9f309da8b70fec8d90d9ce32090 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 17 Oct 2018 06:12:37 -0400 Subject: [PATCH] Bug 20629: Rename reverse_col to actions_col Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 4 ++-- members/boraccount.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 495382e12b..8a86afc7d5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -47,7 +47,7 @@ Note Amount Outstanding - [% IF ( reverse_col ) %] + [% IF ( actions_col ) %] Actions [% ELSE %]   @@ -76,7 +76,7 @@ Print [% END %] Details - [% IF ( reverse_col) %] + [% IF ( actions_col) %] [% IF account.is_credit %] Void [% ELSE %] diff --git a/members/boraccount.pl b/members/boraccount.pl index 9677819661..743c04a543 100755 --- a/members/boraccount.pl +++ b/members/boraccount.pl @@ -79,7 +79,7 @@ if($total <= 0){ $totalcredit = 1; } -my $reverse_col = ( Koha::Account::Lines->search( +my $actions_col = ( Koha::Account::Lines->search( { borrowernumber => $patron->borrowernumber }, { where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0; @@ -96,7 +96,7 @@ $template->param( finesview => 1, total => sprintf("%.2f",$total), totalcredit => $totalcredit, - reverse_col => $reverse_col, + actions_col => $actions_col, accounts => \@accountlines, ); -- 2.39.5