Koha/installer/data/mysql/mandatory
Emmi Takkinen d9a989eaf0
Bug 12133: Add requirements for guarantor and guarantee
Add two requirements when registering a new patron:

- A child patron must have a guarantor. This is controlled by
  a new syspref ChildNeedsGuarantor.
- A guarantor cannot be a guarantee.

Test plan:
1. Add a child patron without guarantor or child patron with guarantee
as guarantor succesfully.
2. Apply this patch.
3. Add a child patron as a guarantor.
=> Error is raised.
4. Turn syspref "ChildNeedsGuarantor" ON.
5. Add a child patron without a guarantor and error "Child needs a
guarantor" is raised.
6. Add guarantor. Guarantor can either be existing patron or added with
"Contact" section.
=> Save without errors.

Also prove t/db_dependent/Koha/Patron.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-10 10:59:40 -03:00
..
audio_alerts.sql
auth_val_cat.sql Bug 34587: Copy authorised value categories and authorised values to new installs 2023-10-31 16:46:05 -03:00
keyboard_shortcuts.sql
message_transport_types.sql
sample_notices_message_attributes.sql Bug 30484: Add ILL update notice 2022-09-23 09:18:45 -03:00
sample_notices_message_transports.sql Bug 8838: Add digest option for HOLD notice 2023-10-25 11:07:48 -03:00
subtag_registry.sql Bug 34328: (follow-up) Add description to en_GB 2023-11-08 17:41:37 -03:00
sysprefs.sql Bug 12133: Add requirements for guarantor and guarantee 2023-11-10 10:59:40 -03:00
userflags.sql Bug 30708: DB changes 2023-10-18 15:41:41 -03:00
userpermissions.sql Bug 29002: Add 'manage_bookings' permission 2023-11-03 12:04:29 -03:00