Bug Fix in issues_stats calculation
This commit is contained in:
parent
7650b33e3e
commit
f885665cae
|
|
@ -455,7 +455,7 @@ sub calculate {
|
|||
my ($bookcount) = $rqbookcount->fetchrow;
|
||||
$strcalc .= "100*(COUNT(DISTINCT itemnumber))/ $bookcount " ;
|
||||
}
|
||||
$strcalc .= "FROM statistics,borrowers where (statistics.borrowernumber=borrowers.borrowernumber) ";
|
||||
$strcalc .= "FROM statistics,borrowers,issues where (statistics.borrowernumber=borrowers.borrowernumber) and issues.borrowernumber=borrowers.borrowernumber and issues.itemnumber=statistics.itemnumber ";
|
||||
|
||||
@$filters[0]=~ s/\*/%/g if (@$filters[0]);
|
||||
$strcalc .= " AND statistics.datetime > '" . @$filters[0] ."'" if ( @$filters[0] );
|
||||
|
|
|
|||
Loading…
Reference in New Issue