]> git.koha-community.org Git - koha.git/commit
Bug 29002: Assign item at time of booking
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 13 Jun 2023 13:11:17 +0000 (14:11 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 3 Nov 2023 15:04:19 +0000 (12:04 -0300)
commit2c6d57c25405545465ecef34c6b96df1f4015bde
treeb984b02ec67896e981081c7710c46c7b692e9eef
parent771fedcaa8c1bc9f431852d6f68713a6634d6bd6
Bug 29002: Assign item at time of booking

This patch updates the logic to ensure we always assign an item at the
point of booking instead of assuming we can assign the item at fulfilment time.

This makes the logic significantly simpler on the client when trying to
calculate available dates.

Test plan
1) Attempt to create a new booking using the 'Any item' option in the
   modal
2) Note that upon placing your booking you are assigned an item for that
   booking.

NOTE: We add a FIXME to the client code to highlight something to test
when/if someone decides to have another try and moving the item
assigment to just in time as aposed to up front.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Biblio.pm
Koha/Booking.pm
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js