bug 4429: do not include items due today in overdue count
Use curdate() instead of now() in GetMemberIssuesAndFines. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
2568e165e6
commit
a445e956eb
1 changed files with 1 additions and 1 deletions
|
@ -678,7 +678,7 @@ sub GetMemberIssuesAndFines {
|
|||
$sth = $dbh->prepare(
|
||||
"SELECT COUNT(*) FROM issues
|
||||
WHERE borrowernumber = ?
|
||||
AND date_due < now()"
|
||||
AND date_due < curdate()"
|
||||
);
|
||||
$sth->execute($borrowernumber);
|
||||
my $overdue_count = $sth->fetchrow_arrayref->[0];
|
||||
|
|
Loading…
Reference in a new issue