[Koha-bugs] [Bug 30788] Argument "" isn't numeric in multiplication (*) at /usr/share/koha/lib/C4/Overdues.pm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 17 14:19:52 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30788

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart+koha at gmail.
                   |                            |com

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I think this is a possible fix:


diff --git a/C4/Overdues.pm b/C4/Overdues.pm                                    
index 5db9c220416..a31d2b4f7ba 100644                                           
--- a/C4/Overdues.pm               
+++ b/C4/Overdues.pm                             
@@ -274,7 +274,7 @@ sub CalcFine {                                              
             # biblio-level recall
             $amount = $charge_periods * $issuing_rule->{recall_overdue_fine};
         }
-        if ( scalar @recalls == 0 ) {
+        if ( scalar @recalls == 0 && $issuing_rule->{fine}) {
             # no recall, use normal fine amount
             $amount = $charge_periods * $issuing_rule->{fine};
         }

Are you expecting a suspension (days) but no fine ($) with this rule?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list