[Koha-bugs] [Bug 6796] Overnight checkouts taking into account opening and closing hours

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 21 00:46:10 CET 2023


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

Aleisha Amohia <aleisha at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #145672|0                           |1
        is obsolete|                            |

--- Comment #25 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 146991
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146991&action=edit
Bug 6796: (follow-up) Fix logic for calculating following day's open hours

Since days for branch hours are stored as 0-6 in the database, when it's
a Saturday (6) incrementing the date leads to an error when issuing an
hourly loan because no opening hours are found for the non-existent day
(7).

This patch fixes this by calculating the tomorrow day and setting it to
0 if it's greater than 6.

This patch also corrects the mappings for days, where local_day_of_week
caluclates the date with Sunday first, which put it out of sync with the
database opening hours days.

Sponsored-by: Auckland University of Technology
Sponsored-by: Catalyst IT

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


More information about the Koha-bugs mailing list