Bug 34478: op =~ ^cud- in pl/pm - Manual revert changes to recreateIssueStatistics.pl
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
a1338de383
commit
632146366a
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ if ($issues == 1) {
|
|||
# This is the not-so accurate part :
|
||||
# We assume that there are missing renewals, based on the last renewal date
|
||||
# Maybe should this be deactivated by default ?
|
||||
my $ctnquery = "SELECT count(*) as cnt FROM statistics WHERE borrowernumber = ? AND itemnumber = ? AND DATE(datetime) = ? AND type = 'cud-renew'";
|
||||
my $ctnquery = "SELECT count(*) as cnt FROM statistics WHERE borrowernumber = ? AND itemnumber = ? AND DATE(datetime) = ? AND type = 'renew'";
|
||||
my $substh = $dbh->prepare($ctnquery);
|
||||
$substh->execute($hashref->{'borrowernumber'}, $hashref->{'itemnumber'}, $hashref->{'lastreneweddate'});
|
||||
|
||||
|
@ -115,7 +115,7 @@ if ($issues == 1) {
|
|||
$hashref->{'lastreneweddate'},
|
||||
$hashref->{'branchcode'},
|
||||
0,
|
||||
'cud-renew',
|
||||
'renew',
|
||||
'',
|
||||
$hashref->{'itemnumber'},
|
||||
$itemtype,
|
||||
|
|
Loading…
Reference in a new issue