|
Lines 79-88
if($total <= 0){
Link Here
|
| 79 |
$totalcredit = 1; |
79 |
$totalcredit = 1; |
| 80 |
} |
80 |
} |
| 81 |
|
81 |
|
| 82 |
my $actions_col = ( Koha::Account::Lines->search( |
|
|
| 83 |
{ borrowernumber => $patron->borrowernumber }, |
| 84 |
{ where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0; |
| 85 |
|
| 86 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
82 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
| 87 |
my $attributes = GetBorrowerAttributes($borrowernumber); |
83 |
my $attributes = GetBorrowerAttributes($borrowernumber); |
| 88 |
$template->param( |
84 |
$template->param( |
|
Lines 96-102
$template->param(
Link Here
|
| 96 |
finesview => 1, |
92 |
finesview => 1, |
| 97 |
total => sprintf("%.2f",$total), |
93 |
total => sprintf("%.2f",$total), |
| 98 |
totalcredit => $totalcredit, |
94 |
totalcredit => $totalcredit, |
| 99 |
actions_col => $actions_col, |
|
|
| 100 |
accounts => \@accountlines, |
95 |
accounts => \@accountlines, |
| 101 |
); |
96 |
); |
| 102 |
|
97 |
|
| 103 |
- |
|
|