From 6b6f7f1654a8ce0ba3ccfb6c3e2c717d9c2d2466 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 8 Jan 2020 10:02:02 +0000 Subject: [PATCH] Bug 24361: (RM follow-up) Restore 0 handling in CalcFine Signed-off-by: Martin Renvoize --- C4/Overdues.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index 26ce74850d..09d4119985 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -261,7 +261,7 @@ sub CalcFine { $amount = $issuing_rule->overduefinescap if $issuing_rule->overduefinescap && $amount > $issuing_rule->overduefinescap; # This must be moved to Koha::Item (see also similar code in C4::Accounts::chargelostitem - $item->{replacementprice} //= $itemtype->defaultreplacecost + $item->{replacementprice} ||= $itemtype->defaultreplacecost if $itemtype && ( ! defined $item->{replacementprice} || $item->{replacementprice} == 0 ) && C4::Context->preference("useDefaultReplacementCost"); -- 2.39.5