@@ -, +, @@ outstanding so the item should generate fines. --- C4/Overdues.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/C4/Overdues.pm +++ a/C4/Overdues.pm @@ -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; --