Koha/members
Alex Buckley dd0d2fa1c9
Bug 22534: Added syspref for defining what guarantee fields are pre filled
Librarians should be able to define what sections in member entryfields in 'Main address',
'Contact' and 'Alternate contact' in member entry form for guarantee's are pre-filled from guarantor's record

The 'Guarantor surname, 'Guarantor first name' and 'relationship' fields
in the 'Contact' section should not be filled from guarantor patron
record as those fields are intended for guarantor's without patron
records in Koha.

Test plan:
1. On an adult patron's record (which has all fields filled out in the
'Main address', 'Contact' (Except for 'Guarantor surname', 'Guarantor
first name', and 'relationship'), 'Alternate address', and 'Alternate contact') select 'Add guarantee'

2. Observe:

* Fields in 'Main address' are all automatically pre-filled
from guarantor record

* Fields in 'Contact' (except 'Guarantor surname', 'Guarantor firstname'
and 'relationship') are all automatically pre-filled from guarantor
record

* Fields in 'Alternate address' (except for Contact note) are pre-filled from guarantor record

* None of the fields in 'Alternate contact' are pre-filled from guarantor

4. Apply patch

5. Run database updates
cd installer/data/mysql
sudo koha-shell <instancename>
./updatedatabase.pl

6. Restart plack:
sudo koha-plack --restart <instancename>

7. Go to Administration > Global system preferences and search for the
new PrefillGuaranteeField system preference

8. Observe this syspref contains checkboxes and the following are
selected by default:
Contact - Primary email
Contact - Primary phone
Main address - Address
Main address - City
Main address - Country
Main address - State
Main address - ZIP/Postal code
Main address - street number

Please note: 'Contact - Guarantor surname', 'Contact - Guarantor first
name', Contact - relationship' are not in PrefillGuaranteeField syspref
as they are for non Koha patrons and so should not be pre-filled from a Koha
patron.

9. Repeat step 1 and observe the following fields are prefilled from guarantor:
In Main address section -
streetnumber
address
city
state
zipcode/postal code
country

In Contact section -
Primary phone
Primary email

10. In the PrefillGuaranteeField syspref click '[Select all]' checkboxes

11. Repeat step 1 and observe all fields in 'Main address', 'Contact'
(except Guarantor surname, Guarantor first name, and relationship),
Alternate address and Alterate contact are filled from guarantor record.

i.e. The values in guarantor's 'Alternate address' fields fill the
guarantee's 'Alternate address' fields

12. Change a few of the prefilled field values and 'Save' and observe your changes
have been saved in addition to the unaltered pre-filled values in other
fields

13. Amend PrefillGuarantee field syspref to have no checkboxes selected

14. Repeat step 1 and observe none of the fields in Main address,
Contact, Alternate address and Alternate contact are pre-filled

15. Run tests:
sudo koha-shell <instancename>
prove xt
prove t

Sponsored-by: Waitaki Distict Council, NZ
Signed-off-by: Sally <sally.healey@cheshiresharedservices.go.uk>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-06 10:44:23 +01:00
..
.nfs0000000000721f7f00000014 Bug 22534: Added syspref for defining what guarantee fields are pre filled 2020-04-06 10:44:23 +01:00
accountline-details.pl
apikeys.pl Bug 21993: Display a user-friendly message when the CSRF token is wrong 2019-01-25 20:38:32 +00:00
boraccount.pl Bug 23051: (follow-up) Add renewal feedback and move code to subroutines and test 2020-03-06 10:03:34 +00:00
default_messageprefs.pl
deletemem.pl Bug 24008: Remove minus sign when displaying credit value 2020-01-20 14:03:52 +00:00
discharge.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
discharges.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
files.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
guarantor_search.pl
holdshistory.pl Bug 21939: Fix permissions for holds history tab 2019-11-07 13:22:03 +00:00
housebound.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
ill-requests.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
mancredit.pl Bug 17702: Add UI to manage account credit types 2020-02-20 14:46:33 +00:00
maninvoice.pl Bug 14898: Add button at manual invoice to redirect to pay tab 2020-02-20 09:04:27 +00:00
member-flags.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
member-password.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
member.pl
memberentry.pl Bug 22534: Added syspref for defining what guarantee fields are pre filled 2020-04-06 10:44:23 +01:00
members-home.pl Bug 23697: (QA follow-up) Rename PatronAutocompletion to PatronAutoComplete 2019-10-08 14:51:12 +01:00
members-update-do.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
members-update.pl
merge-patrons.pl
mod_debarment.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
moremember.pl Bug 20443: Use search_with_library_limits for attribute types 2020-03-23 13:49:22 +00:00
notices.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
patronimage.pl
pay.pl Bug 23051: (follow-up) Add renewal feedback and move code to subroutines and test 2020-03-06 10:03:34 +00:00
paycollect.pl Bug 23051: (follow-up) Add renewal feedback and move code to subroutines and test 2020-03-06 10:03:34 +00:00
print_overdues.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
printfeercpt.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
printinvoice.pl Bug 21879: Code cleaning in printinvoice.pl 2020-02-26 20:42:56 +00:00
printslip.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
purchase-suggestions.pl Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-01-30 08:27:00 +00:00
readingrec.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
routing-lists.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
setstatus.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00
statistics.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
summary-print.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
update-child.pl Bug 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +00:00