[Bug 12133] Guarantor requirements when registering a patron

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 12133] Guarantor requirements when registering a patron

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12133

Emmi Takkinen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33459|0                           |1
        is obsolete|                            |

--- Comment #7 from Emmi Takkinen <[hidden email]> ---
Created attachment 91482
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91482&action=edit
Bug 12133: Guarantor requirements when registering a  patron

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 doesn't have to be a patron. This is controlled by
  a new syspref GuarantorHasToBePatron.
- A guarantor cannot be a guarantee.

Note that syspref "GuarantorHasToBePatron" depends on
"ChildNeedsGuarantor" being ON.

Test plan:
- Add a child patron without a guarantor. Saving the patron
is successful.
- Add a child patron with a guarantor who has a guarantor. Saving is
successful.
- Apply this patch.
- Turn syspref "ChildNeedsGuarantor" ON.
- Add a child patron with a guarantor who has a guarantor. Error
- Add a child patron without a guarantor and error "Child needs a
guarantor" is raised.
- Add the guarantor info (only surname is needed) and saving the patron
 should be succesful.
- Turn syspref "GuarantorNeedsToBePatron" ON.
- Add a child patron this time with guarantor info and error
"Guarantor has to be a patron" is raised.
- Add existing patron as guarantor and now saving the patron
should be succesful.
- Add a child patron with a guarantor who is also a guarantee.
Error is raised.
- Turn syspref "ChildNeedsGuarantor" OFF.
- Add a child patron without a guarantor. Saving patron should
be successful.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/