[Koha-bugs] [Bug 19804] Suspension calculation doesn't honour 'Fine charging interval'
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 6 21:09:46 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19804
--- Comment #18 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Katrin Fischer from comment #17)
> Hi Joubu,
>
> running out of time for testing this morning, but have 2 questions I want to
> note:
>
> 1) For the fine charging interval we multiply:
> Days overdue / fine charging interval * fine
>
> The equivalence would then be:
> Days overdue / suspension charging interval * suspension in days
>
> But that's not quite what this does, is it?
Yes it is what it does, take a look at the tests:
1795 # We want to charge 2 days every day, without grace
1796 # With 5 days of overdue: 5 * Z
(Z is a typo for 2 I guess..)
1814 # We want to charge 2 days every 2 days, without grace
1815 # With 5 days of overdue: (5 * 2) / 2
1836 # We want to charge 2 days every 3 days, with 1 day of grace
1837 # With 5 days of overdue: ((5-1) / 3 ) * 2
> 2) I have backdated an item on checkout to be immediately overdue, but on
> return no restriction was created. Can you add a more detailed test plan?
Today is April 6th, I set:
Suspension in days (day): 3
Suspension charging interval: 2
Which means: charge 3 days every 2 days.
Check an item in with a due date on April 2nd (4 days of overdue)
We are expecting: 3*4/2 = 6 days of suspension
And I get: "Restricted: Patron's account is restricted until 12/04/2018"
\o/
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list