Bug 20629: Rename reverse_col to actions_col
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Oct 2018 10:12:37 +0000 (06:12 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 6 Nov 2018 16:32:42 +0000 (16:32 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
members/boraccount.pl

index 495382e..8a86afc 100644 (file)
@@ -47,7 +47,7 @@
           <th>Note</th>
           <th>Amount</th>
           <th>Outstanding</th>
-          [% IF ( reverse_col ) %]
+          [% IF ( actions_col ) %]
               <th>Actions</th>
           [% ELSE %]
               <th>&nbsp;</th>
@@ -76,7 +76,7 @@
           <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>
         [% END %]
         <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>
-        [% IF ( reverse_col) %]
+        [% IF ( actions_col) %]
           [% IF account.is_credit %]
               <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id | uri %]&amp;borrowernumber=[% account.borrowernumber | uri %]" class="btn btn-default btn-xs void"><i class="fa fa-ban"></i> Void</a>
           [% ELSE %]
index 9677819..743c04a 100755 (executable)
@@ -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,
 );