]> git.koha-community.org Git - koha.git/commit
Bug 27927: Prevent renewal on lost forgive
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 24 Mar 2021 17:13:57 +0000 (17:13 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 22 Apr 2021 13:48:27 +0000 (15:48 +0200)
commitdc7c62ec4d671ca35ce5d87131acb8dc48a0f5b5
tree3cd4399e63d91e1cf3a5e2e4b82d9c3679b90045
parent1c2b5952d315aa35ef015fd5244b5fee913c468c
Bug 27927: Prevent renewal on lost forgive

The `RenewAccruingItemWhenPaid` preference should only renew upon
payment (and writeoff) and not upon automatic forgival triggered by
`WhenLostForgiveFine`.

Test plan
1/ Enable `WhenLostForgiveFine` and `RenewAccruingItemWhenPaid`
2/ Checkout an item and backdate it's due date
3/ Run longeroverdue.pl to mark the item as lost and create the fine
4/ Confirm that the item is not renewed as part of the process
5/ Signoff

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ac233efccf089c9981e81bba30554339007729f4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Account/Line.pm