]> git.koha-community.org Git - koha.git/commit
Bug 20815: Add ability to choose if lost fee is refunded based on length of time...
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 12 Feb 2020 17:55:51 +0000 (12:55 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 23 Jul 2020 08:04:25 +0000 (10:04 +0200)
commite453f74cfd2358ea795f2f0677946fba75ad7841
tree79363da064a53d2633e7a579c5b06a78ef13079d
parent005219ea6fc53a52a41169e96024244abb394ee1
Bug 20815: Add ability to choose if lost fee is refunded based on length of time item has been lost

This adds the ability to not refund lost item fees on return if the item
has been lost for more than a given number of days.

Test Plan:
1) Set the new system preference NoRefundOnLostReturnedItemsAge to a number of days
2) Find a lost item that has been lost longer than that NoRefundOnLostReturnedItemsAge days which would have otherwise been refunded
3) Return the item
4) Note no refund on the lost item fee was processed, the fee remains unchanged
5) prove t/db_dependent/Circulation.t

Signed-off-by: Deb Stephenson <DStephen@dubuque.lib.ia.us>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
installer/data/mysql/atomicupdate/bug_20815.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
t/db_dependent/Circulation.t