/[koha]/koha/reports/issues_stats.pl
ViewVC logotype

Diff of /koha/reports/issues_stats.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7.2.4 by hdl, Tue Sep 27 16:19:37 2005 UTC revision 1.7.2.5 by hdl, Mon Nov 21 17:12:04 2005 UTC
# Line 455  sub calculate { Line 455  sub calculate {
455                  my ($bookcount) = $rqbookcount->fetchrow;                  my ($bookcount) = $rqbookcount->fetchrow;
456                  $strcalc .= "100*(COUNT(DISTINCT itemnumber))/ $bookcount " ;                  $strcalc .= "100*(COUNT(DISTINCT itemnumber))/ $bookcount " ;
457          }          }
458          $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 ";
459    
460          @$filters[0]=~ s/\*/%/g if (@$filters[0]);          @$filters[0]=~ s/\*/%/g if (@$filters[0]);
461          $strcalc .= " AND statistics.datetime > '" . @$filters[0] ."'" if ( @$filters[0] );          $strcalc .= " AND statistics.datetime > '" . @$filters[0] ."'" if ( @$filters[0] );

Legend:
Removed from v.1.7.2.4  
changed lines
  Added in v.1.7.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26