Bug 8253 - Fine doubling

Provides a fix that during database upgrade, fines are correclty
formatted. Once the misc/cronjobs/fines.pl is run in the
upgraded database, it will not result in duplicate fines being
generated.

Signed-off-by: wajasu <matted-34813@mypacks.net>
This commit is contained in:
Mason James 2012-10-03 11:09:41 +13:00 committed by Paul Poulain
parent 9ea2bb7eca
commit 18297b04c1

View file

@ -5026,7 +5026,8 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do("ALTER TABLE old_issues CHANGE returndate returndate datetime");
$dbh->do("ALTER TABLE old_issues CHANGE lastreneweddate lastreneweddate datetime");
$dbh->do("ALTER TABLE old_issues CHANGE issuedate issuedate datetime");
print "Upgrade to $DBversion done (Setting up issues tables for hourly loans)\n";
$dbh->do("UPDATE accountlines SET description = CONCAT(description,' 23:59') WHERE accounttype='F' OR accounttype='FU'"); #BUG-8253
print "Upgrade to $DBversion done (Setting up issues and accountlines tables for hourly loans)\n";
SetVersion($DBversion);
}