Lines 66-72
my $patron = Koha::Patrons->find( $borrowernumber );
Link Here
|
66 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
66 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
67 |
|
67 |
|
68 |
my $branch=C4::Context->userenv->{'branch'}; |
68 |
my $branch=C4::Context->userenv->{'branch'}; |
69 |
my ($slip, $is_html); |
69 |
my $slip; |
70 |
if ( $print eq 'checkinslip' ) { |
70 |
if ( $print eq 'checkinslip' ) { |
71 |
my $checkinslip_branch = $session->param('branch') ? $session->param('branch') : $branch; |
71 |
my $checkinslip_branch = $session->param('branch') ? $session->param('branch') : $branch; |
72 |
|
72 |
|
Lines 89-105
if ( $print eq 'checkinslip' ) {
Link Here
|
89 |
message_transport_type => 'print' |
89 |
message_transport_type => 'print' |
90 |
); |
90 |
); |
91 |
|
91 |
|
92 |
$slip = $letter->{content}; |
92 |
$slip = $letter; |
93 |
$is_html = $letter->{is_html}; |
|
|
94 |
|
93 |
|
95 |
} elsif (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumber, $print eq "qslip")) { |
94 |
} elsif (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumber, $print eq "qslip")) { |
96 |
$slip = $letter->{content}; |
95 |
$slip = $letter; |
97 |
$is_html = $letter->{is_html}; |
|
|
98 |
} |
96 |
} |
99 |
|
97 |
|
100 |
$template->param( |
98 |
$template->param( |
101 |
slip => $slip, |
99 |
slip => $slip, |
102 |
plain => !$is_html, |
|
|
103 |
borrowernumber => $borrowernumber, |
100 |
borrowernumber => $borrowernumber, |
104 |
caller => 'members', |
101 |
caller => 'members', |
105 |
stylesheet => C4::Context->preference("SlipCSS"), |
102 |
stylesheet => C4::Context->preference("SlipCSS"), |
106 |
- |
|
|