}
);
-my $borr = Koha::Patrons->find( $borrowernumber )->unblessed;
-
-$template->param(%{$borr});
-
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
# get the record
$template->param(JacketImages=>1);
}
+my $saving_display = C4::Context->preference('OPACShowSavings');
+if ( $saving_display =~ /checkouthistory/ ) {
+ my $patron = Koha::Patrons->find( $borrowernumber );
+ $template->param( savings => $patron->get_savings );
+}
+
$template->param(
READING_RECORD => $issues,
limit => $limit,