diff --git a/C4/Stats.pm b/C4/Stats.pm
index 8c03061358..d16b13fd17 100644
--- a/C4/Stats.pm
+++ b/C4/Stats.pm
@@ -91,7 +91,7 @@ sub TotalPaid {
my ($time,$time2)=@_;
$time2=$time unless $time2;
my $dbh = C4::Context->dbh;
- my $query="Select * from accountlines,borrowers where (accounttype = 'Pay' or accounttype ='W')
+ my $query="Select * from accountlines,borrowers where (accounttype = 'Pay' or accounttype ='W' or accounttype='C')
and accountlines.borrowernumber = borrowers.borrowernumber";
my @bind = ();
if ($time eq 'today'){
@@ -109,14 +109,12 @@ sub TotalPaid {
# $query.=" and datetime > '$time'";
# }
$query.=" order by timestamp";
- # print $query;
+ warn $query;
my $sth=$dbh->prepare($query);
$sth->execute(@bind);
my @results;
- my $i=0;
while (my $data=$sth->fetchrow_hashref){
- $results[$i]=$data;
- $i++;
+ push @results,$data;
}
$sth->finish;
# print $query;
diff --git a/koha-tmpl/intranet-tmpl/default/en/stats.tmpl b/koha-tmpl/intranet-tmpl/default/en/stats.tmpl
index 4659f328c4..28f74c2d0f 100644
--- a/koha-tmpl/intranet-tmpl/default/en/stats.tmpl
+++ b/koha-tmpl/intranet-tmpl/default/en/stats.tmpl
@@ -1,16 +1,20 @@
+
- | Name |
- Type |
- Date/time |
- Amount |
- Branch |
+ Name |
+ Description |
+ Type |
+ Date/time |
+ Amount |
+ Branch |
+
|
+ |
|
|
|
@@ -26,6 +30,5 @@
Total written off:
-
-