Lines 37-42
my $startdate = $input->param('from');
Link Here
|
37 |
my $enddate = $input->param('to'); |
37 |
my $enddate = $input->param('to'); |
38 |
my $ratio = $input->param('ratio'); |
38 |
my $ratio = $input->param('ratio'); |
39 |
my $include_ordered = $input->param('include_ordered'); |
39 |
my $include_ordered = $input->param('include_ordered'); |
|
|
40 |
my $include_suspended = $input->param('include_suspended'); |
40 |
|
41 |
|
41 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
42 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
42 |
{ |
43 |
{ |
Lines 104-109
my $include_aqorders_qty_join =
Link Here
|
104 |
: q{}; |
105 |
: q{}; |
105 |
|
106 |
|
106 |
my $nfl_comparison = $include_ordered ? '<=' : '='; |
107 |
my $nfl_comparison = $include_ordered ? '<=' : '='; |
|
|
108 |
my $sus_comparison = $include_suspended ? '<=' : '<'; |
107 |
my $strsth = |
109 |
my $strsth = |
108 |
"SELECT reservedate, |
110 |
"SELECT reservedate, |
109 |
reserves.borrowernumber as borrowernumber, |
111 |
reserves.borrowernumber as borrowernumber, |
Lines 138-143
my $strsth =
Link Here
|
138 |
$include_aqorders_qty_join |
140 |
$include_aqorders_qty_join |
139 |
WHERE |
141 |
WHERE |
140 |
notforloan $nfl_comparison 0 AND damaged = 0 AND itemlost = 0 AND withdrawn = 0 |
142 |
notforloan $nfl_comparison 0 AND damaged = 0 AND itemlost = 0 AND withdrawn = 0 |
|
|
143 |
AND suspend $sus_comparison 1 |
141 |
$sqldatewhere |
144 |
$sqldatewhere |
142 |
"; |
145 |
"; |
143 |
|
146 |
|
Lines 199-204
$template->param(
Link Here
|
199 |
to => $enddate, |
202 |
to => $enddate, |
200 |
ratio => $ratio, |
203 |
ratio => $ratio, |
201 |
include_ordered => $include_ordered, |
204 |
include_ordered => $include_ordered, |
|
|
205 |
include_suspended => $include_suspended, |
202 |
reserveloop => \@reservedata, |
206 |
reserveloop => \@reservedata, |
203 |
); |
207 |
); |
204 |
|
208 |
|