]> git.koha-community.org Git - koha.git/commit
Bug 6796: Don't add a day if hourly loan period pushes due date
authorAleisha Amohia <aleishaamohia@hotmail.com>
Fri, 5 Aug 2022 03:00:52 +0000 (15:00 +1200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 12 Apr 2024 09:26:05 +0000 (11:26 +0200)
commitb2a6dd0c1d92b8dc0607e4064840aa84bccc386d
treeb9b83a1b3b3a7abfd8acfbc90d2c0118a4867832
parentd80ef8df782191b05571e57b1f6e23e2c8b035ef
Bug 6796: Don't add a day if hourly loan period pushes due date

If ConsiderLibraryHoursWhenIssuing is set to shorten the loan period to
the closing time, if the loan period initially pushes the due date to
the following day, the day still gets added when calculating the due
date. We simply need to hardcode the due time here as the due day is the
same as the issue day.

We only need to calculate a due date if ConsiderLibraryHoursWhenIssuing
is set to extend the loan period to the next opening day, as we'll need
to consider holidays/closed days.

Sponsored-by: Catalyst IT
Sponsored-by: Auckland University of Technology
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Circulation.pm