Bug 8306: Patrons statistics, fix for patron activity choice
The "inactive" for "patron activity" choice is now effective. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
parent
ed6163d27e
commit
208e72a16b
|
|
@ -422,7 +422,7 @@ sub calculate {
|
|||
}
|
||||
}
|
||||
$strcalc .= " AND borrowernumber in (select distinct(borrowernumber) from old_issues where issuedate > '" . $newperioddate . "')" if ($activity eq 'active');
|
||||
$strcalc .= " AND borrowernumber not in (select distinct(borrowernumber) from old_issues where issuedate > '" . $newperioddate . "')" if ($activity eq 'nonactive');
|
||||
$strcalc .= " AND borrowernumber not in (select distinct(borrowernumber) from old_issues where issuedate > '" . $newperioddate . "' AND borrowernumber IS NOT NULL)" if ($activity eq 'nonactive');
|
||||
$strcalc .= " AND $status='1' " if ($status);
|
||||
|
||||
$strcalc .= " GROUP BY ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue