[Koha-bugs] [Bug 27835] Closed days offsets with one day

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 10 13:13:17 CET 2021


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

--- Comment #6 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
(In reply to Jonathan Druart from comment #5)
> What happened on Tuesday?
> 
> Says we have the following situation:
> 
>      March 2021       
> Su Mo Tu  We  Th Fr Sa  
>     1  2   3   4  5  6  
>  7  8  9 *10* 11 12 13  
> 14 15 16  17  18 19 20  
> 21 22 23  24  25 26 27  
> 28 29 30  31  
> 
> Wednesdays are closed.
> Date due is Mon 8.
> 
> 2€ each day late (fine amount=2, interval=1)
> 
> Cronjob run:
> on Monday:    no fine is generated
> on Tuesday:   fine of 2€ is generated (Monday)
> on Wednesday: additional fine of 2€ is generated (Monday + Tuesday)
> on Thursday:  no additional fine is generated (Wed was closed)
> 
> The cronjob must run early in the morning!

Correct.

> Isn't it how it is supposed to work?

I think not. It should be:

> Cronjob run:
> on Monday:    no fine is generated (usually you can return until 23:59)
> on Tuesday:   fine of 2€ is generated (for Tuesday)
> on Wednesday: no fine is generated - library is closed!
> on Thursday:  an additional 2€ is generated (for Thursday)

In the past, Wednesday would not generate a fine. The script would exit when
"today" was a holiday. I am not sure if we have changed that - but I hope not
as  our use cases requires it looks like above.
Here when the library is closed, nothing on the account should "move".

Could settings for fine interval (charge at beginning or end) and finescalendar
have different effects here?

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


More information about the Koha-bugs mailing list