Lines 197-205
if ( $pending_checkouts->count ) { # Useless test
Link Here
|
197 |
accounttype => [ 'F', 'FU', 'L' ], |
197 |
accounttype => [ 'F', 'FU', 'L' ], |
198 |
itemnumber => $issue->{itemnumber} |
198 |
itemnumber => $issue->{itemnumber} |
199 |
}, |
199 |
}, |
200 |
{ select => [ { sum => 'amountoutstanding' } ], as => ['charges'] } |
|
|
201 |
); |
200 |
); |
202 |
$issue->{charges} = $charges->count ? $charges->next->get_column('charges') : 0; |
201 |
$issue->{charges} = $charges->total_outstanding; |
203 |
|
202 |
|
204 |
my $rental_fines = Koha::Account::Lines->search( |
203 |
my $rental_fines = Koha::Account::Lines->search( |
205 |
{ |
204 |
{ |
Lines 207-219
if ( $pending_checkouts->count ) { # Useless test
Link Here
|
207 |
amountoutstanding => { '>' => 0 }, |
206 |
amountoutstanding => { '>' => 0 }, |
208 |
accounttype => 'Rent', |
207 |
accounttype => 'Rent', |
209 |
itemnumber => $issue->{itemnumber} |
208 |
itemnumber => $issue->{itemnumber} |
210 |
}, |
|
|
211 |
{ |
212 |
select => [ { sum => 'amountoutstanding' } ], |
213 |
as => ['rental_fines'] |
214 |
} |
209 |
} |
215 |
); |
210 |
); |
216 |
$issue->{rentalfines} = $rental_fines->count ? $rental_fines->next->get_column('rental_fines') : 0; |
211 |
$issue->{rentalfines} = $rental_fines->total_outstanding |
217 |
|
212 |
|
218 |
my $marcrecord = GetMarcBiblio({ biblionumber => $issue->{'biblionumber'} }); |
213 |
my $marcrecord = GetMarcBiblio({ biblionumber => $issue->{'biblionumber'} }); |
219 |
$issue->{'subtitle'} = GetRecordValue('subtitle', $marcrecord, GetFrameworkCode($issue->{'biblionumber'})); |
214 |
$issue->{'subtitle'} = GetRecordValue('subtitle', $marcrecord, GetFrameworkCode($issue->{'biblionumber'})); |
220 |
- |
|
|