[Koha-bugs] [Bug 36271] Bookings should respect circulation rules for max loan periods

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 20 15:40:07 CET 2024


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

--- Comment #5 from Thibaud Guillot <thibaud.guillot at biblibre.com> ---
Created attachment 163546
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163546&action=edit
Bug 36271 : Add circulation rules for booking

Welcome to 4 new circulation rules :)

- Bookings allowed (total) / bookings_allowed_total
- Bookings per item (total) / bookings_per_item
- Bookings per itemtype (total) / bookings per itemtype
- Bookings period length (day) / bookings_period_length

Test plan:
1) Apply this patch
2) Set values for these new rules
** Note that rules respect the item setting bookable:
   - bookable to "yes" => bookings per item rule
   - bookable to "follow item type" => bookings per itemtype rule
   - bookable to 'no' => no "Bookings" section on menu
3) Try perform a booking now
4) Define a total to 1, 2 per item and 3 per itemtype with 2 days for
   example for booking period.
5) After 1 an error message showing related to total allowed
6) Set total to 5 and retry on item bookable sets to "Yes"
7) Normally it's works but do it again (to have 3 bookings and an error
   message appears)
8) Do the same thing on item bookable sets to "Follow item type", the
   maximum will be 3 now before see the error.
** Note that if bookings total and booking per item/itemtype is set it
will be the minimum number.
9)You can also try to test with a longer period than bookings period
  length rule, an another error will be displayed.

Sponsored by: Association de Gestion des Ĺ’uvres Sociales d'Inria (AGOS)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list