[Koha-bugs] [Bug 22788] Wrong accruing Overdue Amount

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 4 09:08:51 CET 2019


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.renvoize at ptfs-europe
                   |                            |.com

--- Comment #3 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
I agree with Nick, this is almost certainly MaxFine coming into play.

Overdues will work through overdue items one by one calculating and updating
the fine for each one.  Part of that calculation is to look at all pre-existing
fines on he users account (including any added within this loop) and sum the
amountoutstandings to ensure we're not going to exceed the MaxFine cap when
adding this fines next increment.

As nick has said, it look like you have a MaxFine of 100 set. So, when the
overdues job looped over the first item it calculated a fine of 33 and added it
unscathed. However, when it hit the second item it calculated a fine of 33,
then compared the total outstanding (33 + 33 + 33 = 99) to the would be total
outstanding if it added the full fine was added here (99 + 33 = 132) and
spotted that it would exceed the MaxFine of 100.. As such it reduced the
increment to $1 instead of $33.

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


More information about the Koha-bugs mailing list