Lines 42-47
use Koha::Patron::Images;
Link Here
|
42 |
use Koha::DateUtils; |
42 |
use Koha::DateUtils; |
43 |
|
43 |
|
44 |
my $input = new CGI; |
44 |
my $input = new CGI; |
|
|
45 |
|
45 |
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user({ |
46 |
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user({ |
46 |
template_name => 'members/discharge.tt', |
47 |
template_name => 'members/discharge.tt', |
47 |
query => $input, |
48 |
query => $input, |
Lines 50-56
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user({
Link Here
|
50 |
flagsrequired => { 'borrowers' => '*' }, |
51 |
flagsrequired => { 'borrowers' => '*' }, |
51 |
}); |
52 |
}); |
52 |
|
53 |
|
53 |
my $borrowernumber; |
54 |
my $borrowernumber = $input->param('borrowernumber'); |
|
|
55 |
|
56 |
unless ( C4::Context->preference('useDischarge') ) { |
57 |
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber&nopermission=1"); |
58 |
exit; |
59 |
} else { |
60 |
|
54 |
my $data; |
61 |
my $data; |
55 |
if ( $input->param('borrowernumber') ) { |
62 |
if ( $input->param('borrowernumber') ) { |
56 |
$borrowernumber = $input->param('borrowernumber'); |
63 |
$borrowernumber = $input->param('borrowernumber'); |
Lines 132-138
if ( $input->param('borrowernumber') ) {
Link Here
|
132 |
can_be_discharged => $can_be_discharged, |
139 |
can_be_discharged => $can_be_discharged, |
133 |
validated_discharges => $validated_discharges, |
140 |
validated_discharges => $validated_discharges, |
134 |
); |
141 |
); |
135 |
} |
142 |
}} |
136 |
|
143 |
|
137 |
$template->param( dischargeview => 1, ); |
144 |
$template->param( dischargeview => 1, ); |
138 |
|
145 |
|
139 |
- |
|
|