Bug 10030 - MaxFines checks against amount, not amount outstanding
[koha_ffzg] / C4 / Overdues.pm
index bc1c7a7..c99a669 100644 (file)
@@ -540,8 +540,9 @@ sub UpdateFine {
                 next;
             }
         }
-        $total_amount_other += $rec->{'amount'};
+        $total_amount_other += $rec->{'amountoutstanding'};
     }
+
     if (my $maxfine = C4::Context->preference('MaxFine')) {
         if ($total_amount_other + $amount > $maxfine) {
             my $new_amount = $maxfine - $total_amount_other;