use C4::Members;
use C4::Accounts;
use Koha::DateUtils;
-use Koha::Patron::Images;
+use Koha::Patrons;
use Koha::Patron::Categories;
my $input=new CGI;
my $action = $input->param('action') || '';
my $accountlines_id = $input->param('accountlines_id');
-#get borrower details
-my $data=GetMember('borrowernumber' => $borrowernumber);
+my $patron = Koha::Patrons->find( $borrowernumber );
+my $category = $patron->category;
+my $data = $patron->unblessed;
+$data->{description} = $category->description;
+$data->{category_type} = $category->category_type;
if ( $action eq 'print' ) {
# ReversePayment( $borrowernumber, $input->param('accountno') );
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' );
-my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
-$template->param( picture => 1 ) if $patron_image;
+$template->param( picture => 1 ) if $patron->image;
$template->param(
finesview => 1,