<th>Note</th>
<th>Amount</th>
<th>Outstanding</th>
- [% IF ( reverse_col ) %]
+ [% IF ( actions_col ) %]
<th>Actions</th>
[% ELSE %]
<th> </th>
<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 %]
$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;
finesview => 1,
total => sprintf("%.2f",$total),
totalcredit => $totalcredit,
- reverse_col => $reverse_col,
+ actions_col => $actions_col,
accounts => \@accountlines,
);