Bug 15675 - Add issue_id column to accountlines and use it for updating fines
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 26 Jan 2016 16:42:44 +0000 (16:42 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 2 Mar 2016 03:24:45 +0000 (03:24 +0000)
commit2398bfafc6db56133d2755b9714d2a6d940afe5a
treed9b16e35f00928bdcb052e6c701e46e16e4cb74b
parent16548d39840c92d43a64ca08f63231156935c41c
Bug 15675 - Add issue_id column to accountlines and use it for updating fines

Right now, fines are updated based on the fine description. There are a
number of areas where this can go wrong ( date or time format changing,
title being modified, etc ). Now that issues has a unique
identifier, we should use that for selection and updating of fines.

Test Plan:
1) Apply this patch
2) Test creating and updating fines via fines.pl
   and checking in overdue items. No changes should be noted.
3) prove t/db_dependent/Circulation.t

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
C4/Circulation.pm
C4/Overdues.pm
Koha/Account/Line.pm [new file with mode: 0644]
Koha/Account/Lines.pm [new file with mode: 0644]
installer/data/mysql/atomicupdate/bug_15334.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
misc/cronjobs/fines.pl
t/db_dependent/Circulation.t