Bug 20629: Rename reverse_col to actions_col
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
b6c8f9f7ef
commit
146f1ca3a6
2 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@
|
|||
<th>Note</th>
|
||||
<th>Amount</th>
|
||||
<th>Outstanding</th>
|
||||
[% IF ( reverse_col ) %]
|
||||
[% IF ( actions_col ) %]
|
||||
<th>Actions</th>
|
||||
[% ELSE %]
|
||||
<th> </th>
|
||||
|
@ -76,7 +76,7 @@
|
|||
<a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id | html %]&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&accountlines_id=[% account.accountlines_id | uri %]&borrowernumber=[% account.borrowernumber | uri %]" class="btn btn-default btn-xs void"><i class="fa fa-ban"></i> Void</a>
|
||||
[% ELSE %]
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue