]> git.koha-community.org Git - koha.git/commit
Bug 32891: Fix slot selection in last hour
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Feb 2023 07:48:29 +0000 (08:48 +0100)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Fri, 24 Feb 2023 11:11:09 +0000 (11:11 +0000)
commit759c23df7d2c0de1d50d13c33606f7a746d9625b
treec0e1a6cb654177c2e33f32368d7845c3e8ff7abb
parente75067f8d746576203fcd526e32646aa0ecc2a7b
Bug 32891: Fix slot selection in last hour

If the curbside pickup module is configured with slot not on the hour
(minutes=00), the slots in the last (not complete) hour won't be
selectable.

Test plan:
Create the following configuration:
pickup interval: 10
Opening hours: 08:00 to 11:30
Create a pickup and select 11:10 or 11:20
=> Without this patch the pickup is not created and the UI displays "Wrong slot selected"
=> With this patch you are able to create the pickup

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f2f288a8c409ae32fb15e764bfd980d022315ff8)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
Koha/CurbsidePickupPolicy.pm
t/db_dependent/Koha/CurbsidePickups.t