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