Bug 6398

Summary: Holidays cause date due to be improperly calculated
Product: Koha Reporter: Owen Leonard <oleonard>
Component: HolidaysAssignee: Dobrica Pavlinusic <dpavlin>
Status: RESOLVED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P5 - low CC: dpavlin, mcoalwell, tomascohen, wizzyrea
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=82
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 8418    
Bug Blocks:    

Description Owen Leonard 2011-05-24 14:43:09 UTC
- Checking out items on 24 May.
- Loan period is set to 14 days.
- useDaysMode is set to "Calculate the due date using the calendar
  to push the due date to the next open day."   
- Holiday set for 30 May.
- Items are checked out with date due 8 June: 15 days.

When calculating the due date the loan period should be extended by one day *only* if the due date would otherwise fall on the holiday date. In this case the due date is getting pushed forward just because a holiday falls between now and the due date.
Comment 1 Dobrica Pavlinusic 2012-07-11 16:54:38 UTC
I found this bug after I opened

Bug 8418 - Koha::Calendar is_holiday ignores all user data

which is basically a duplicate of this one. Sorry about that :-)
Comment 2 Tomás Cohen Arazi 2012-09-20 17:36:20 UTC

*** This bug has been marked as a duplicate of bug 8418 ***