my $enddate = $input->param('to');
my $ratio = $input->param('ratio');
my $include_ordered = $input->param('include_ordered');
+my $include_suspended = $input->param('include_suspended');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
: q{};
my $nfl_comparison = $include_ordered ? '<=' : '=';
+my $sus_comparison = $include_suspended ? '<=' : '<';
my $strsth =
"SELECT reservedate,
reserves.borrowernumber as borrowernumber,
$include_aqorders_qty_join
WHERE
notforloan $nfl_comparison 0 AND damaged = 0 AND itemlost = 0 AND withdrawn = 0
+ AND suspend $sus_comparison 1
$sqldatewhere
";
to => $enddate,
ratio => $ratio,
include_ordered => $include_ordered,
+ include_suspended => $include_suspended,
reserveloop => \@reservedata,
);
<li>
<li>
+ <label for="include_suspended">Included suspended:</label>
+ [% IF include_suspended %]
+ <input id="include_suspended" name="include_suspended" type="checkbox" checked="checked"/>
+ [% ELSE %]
+ <input id="include_suspended" name="include_suspended" type="checkbox"/>
+ [% END %]
+ <li>
+
+ <li>
<label for="from">Start date:</label>
<input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
</li>