]> git.koha-community.org Git - koha.git/commit
Bug 8253 - fix fine doubling, when upgrading from 3.6 to 3.8 - Add de-duplication...
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 4 Oct 2012 14:34:49 +0000 (10:34 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 28 Oct 2012 20:23:37 +0000 (09:23 +1300)
commit32e12765d2e986b5863e90c704ceb63d7b98cb3b
treecd37b67739d25f7da76f4ac7b117b7938349e206
parentc959e464ffb8728144335ce71a130c8a2904b642
Bug 8253 - fix fine doubling, when upgrading from 3.6 to 3.8 - Add de-duplication script

This script will remove these duplicate fines. To use, repeatably run this
script until there are no more duplicates in the database.
(fix_accountlines_rmdupfines_bug8253.pl)

Duplicate fines would happen if you upgraded to a 3.8 version that does not have the
bug8253 patch, and the misc/cronjobs/fines.pl is run. In 3.8 an upgrade to a more
granular date/time was not addressed for pre-existing fine entries and this script
removes the resulting duplicates. It also intelligently preserves the amount outstanding
for payments already applied. If your version already had the bug8253 patch at the time
of the upgrade, duplicate fines should not have been generatd.

Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/maintenance/fix_accountlines_rmdupfines_bug8253.pl [new file with mode: 0755]