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:
Jonathan Druart 2024-01-31 15:54:01 +01:00
parent a1338de383
commit 632146366a
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -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,