Bug 18344: Allow overdue fines cap at replacement price, and cap by amount to work...
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 28 Mar 2017 11:05:28 +0000 (11:05 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 11 Jun 2019 09:17:25 +0000 (10:17 +0100)
commite702ff89f77e50b1bcef1cdc1548627957251df0
treeea7b07aa459fdf5e0760f2de6fe76fb0bbae5ac4
parent2e8a6a4b097f7ed7bb33efe819693752abba33cb
Bug 18344: Allow overdue fines cap at replacement price, and cap by amount to work together

There is no reason that a library shouldn't be able to use the monetary
fines cap and the replacement price cap at the same time. The code is
written in such a way that they already work harmoniously. We have
librarians who wish to use both so they can set a high cap of $10.00 but
also use the replacement price cap so that a $20.00 book would only get
a fine of $10.00, but a $5.00 paperback will only get a fine of $5.00

Test Plan:
1) Apply this patch
2) Create a rule with a fines cap of $10, *and* a cap at replacement price, and a daily fine of $1
3) Create two items, one with a replacement price of $5 and one with a
   replacement price of $15
4) Check out these items to a patron, backdate the checkouts so they are
   already overdue by a couple months
5) Check the items in ( make sure calc fine at checkin is enabled for
    you )
6) Note the one item has a fine of $5 and the other has a fine of $10!

Signed-off-by: David Kuhn <techservspec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt