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)
committerPaul Poulain <paul.poulain@biblibre.com>
Sun, 28 Oct 2012 18:12:30 +0000 (19:12 +0100)
commit7f628b12d46c56c44e18ec4b68a75e6ec77713aa
tree52b348120c7cf1ebd8c11b01db24f4ef2fba23de
parent18297b04c1598d1fcf43e0d38a65426d1fc35162
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>
misc/maintenance/fix_accountlines_rmdupfines_bug8253.pl [new file with mode: 0755]