summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b6c8f9f)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
<th>Note</th>
<th>Amount</th>
<th>Outstanding</th>
<th>Note</th>
<th>Amount</th>
<th>Outstanding</th>
- [% IF ( reverse_col ) %]
+ [% IF ( actions_col ) %]
<th>Actions</th>
[% ELSE %]
<th> </th>
<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>
<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 %]
[% 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 %]
-my $reverse_col = ( Koha::Account::Lines->search(
+my $actions_col = ( Koha::Account::Lines->search(
{ borrowernumber => $patron->borrowernumber },
{ where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0;
{ borrowernumber => $patron->borrowernumber },
{ where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0;
finesview => 1,
total => sprintf("%.2f",$total),
totalcredit => $totalcredit,
finesview => 1,
total => sprintf("%.2f",$total),
totalcredit => $totalcredit,
- reverse_col => $reverse_col,
+ actions_col => $actions_col,
accounts => \@accountlines,
);
accounts => \@accountlines,
);