Bug 18486

Summary: Calendar maintenance script: correct dates
Product: Koha Reporter: Michal Denar <black23>
Component: HolidaysAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P3 CC: black23, josef.moravec, mehdi.hamidi, rbit
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 17015    
Bug Blocks:    

Description Michal Denar 2017-04-24 09:33:49 UTC
User case:
Some holiday need to be added just couple of days before. We need tool that corect date of check-ins or pickup days on new the closest working day, if some changes in calendar are made. Script find dates for check-ins and pickups at new holiday and validate them with new schedule.
Comment 1 Mehdi Hamidi 2017-04-24 15:19:56 UTC
Hello Mike, 

our calendar  (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17015) is supposed to handle this already, not as a maintenance script, but when calculating fines, the borrower won't be charged for the extra day.  

Can you try your scenario and let us know?

Thanks!

Mehdi Hamidi
Comment 2 Michal Denar 2017-04-26 06:50:39 UTC
Hello Mehdi,
is great if your new calendar solve fines. But at my point of view is it part of problem. If dates are not corrected on new close working day, user see this date in profile, librarians in details of title. It can make chaos situations and really to confuse borrowers.

What did you think about this?

Mike
Comment 3 Mehdi Hamidi 2017-04-26 13:42:20 UTC
Hello Mike,

Unfortunately our calendar doesn't support this. 
But if a holiday was added after the checkout, it can also be removed before the check-in. This might not be a good idea to adjust the dates every time. I think as long as the borrower doesn't pay a fine for the extra days, there's not a real need for a maintenance script.

Mehdi Hamidi