Bug 17588: ->get_issues has been replaced with ->checkouts

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-12-27 09:05:18 +01:00 committed by Kyle M Hall
parent 90f9a3c6ac
commit bcf9fdafab
3 changed files with 5 additions and 5 deletions

View File

@ -170,7 +170,7 @@ sub search {
foreach my $patron (@$patrons) {
my $patron_object = Koha::Patrons->find( $patron->{borrowernumber} );
$patron->{overdues} = $patron_object->get_overdues->count;
$patron->{issues} = $patron_object->get_issues->count;
$patron->{issues} = $patron_object->checkouts->count;
my $balance = $patron_object->account->balance;
# FIXME Should be formatted from the template
$patron->{fines} = sprintf("%.2f", $balance);

View File

@ -267,7 +267,7 @@ if ($borrowernumber) {
$patron = Koha::Patrons->find( $borrowernumber );
$borrower = GetMember( borrowernumber => $borrowernumber );
my $overdues = $patron->get_overdues;
my $issues = $patron->get_issues;
my $issues = $patron->checkouts;
my $balance = $patron->account->balance;
@ -421,9 +421,9 @@ if (@$barcodes) {
);
# FIXME If the issue is confirmed, we launch another time get_issues->count, now display the issue count after issue
# FIXME If the issue is confirmed, we launch another time checkouts->count, now display the issue count after issue
$patron = Koha::Patrons->find( $borrowernumber );
$template_params->{issuecount} = $patron->get_issues->count;
$template_params->{issuecount} = $patron->checkouts->count;
if ( $iteminfo ) {
$iteminfo->{subtitle} = GetRecordValue('subtitle', GetMarcBiblio($iteminfo->{biblionumber}), GetFrameworkCode($iteminfo->{biblionumber}));

View File

@ -120,7 +120,7 @@ my $error = $input->param('error');
$template->param( error => $error ) if ( $error );
my $patron = Koha::Patrons->find($borrowernumber);
my $issues = $patron->get_issues;
my $issues = $patron->checkouts;
my $balance = $patron->account->balance;
$template->param(
issuecount => $issues->count,