Lines 54-66
my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"
Link Here
|
54 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
54 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
55 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
55 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
56 |
|
56 |
|
57 |
my $category = $patron->category; |
|
|
58 |
|
59 |
if ( $action eq 'print' ) { |
57 |
if ( $action eq 'print' ) { |
60 |
# ReversePayment( $borrowernumber, $input->param('accountno') ); |
58 |
# ReversePayment( $borrowernumber, $input->param('accountno') ); |
61 |
} |
59 |
} |
62 |
|
60 |
|
63 |
if ( $category->category_type eq 'C') { |
61 |
if ( $patron->is_child ) { |
64 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
62 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
65 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
63 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
66 |
$template->param( 'catcode' => $patron_categories->next->categorycde ) if $patron_categories->count == 1; |
64 |
$template->param( 'catcode' => $patron_categories->next->categorycde ) if $patron_categories->count == 1; |