LP1786312 Due date extension honors max fine (follow up) user/berick/lp1786312-due-date-extend-exceed-max-fines-v2
authorBill Erickson <berickxx@gmail.com>
Fri, 23 Sep 2022 22:20:41 +0000 (18:20 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 3 Oct 2022 13:42:49 +0000 (09:42 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm

index 22d530d..fb4ee8d 100644 (file)
@@ -599,7 +599,7 @@ sub generate_fines {
             # occurred after the current due date*.  Otherwise, when a 
             # due date changes, the fine generator will back-fill billings
             # for a period of time where the item was not technically overdue.
-            @fines = grep { $_->billing_ts > $c->$due_date_method } @fines;
+            @fines = grep { $_->billing_ts gt $c->$due_date_method } @fines;
     
             my $f_idx = 0;
             my $fine = $fines[$f_idx] if (@fines);