Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Alex Buckley 6fc82e008c
Bug 23808: Pre-fill guarantor fields when adding guarantee to guarantor
Bug 14570 removed the guarantor pre-fill functionality when selecting
'Add guarantee' to an Adult patron. This is because guarantor
information would now only display if (1) the patron record exists
(which it won't when first adding guarantee to guarantor record) and (2)
if there is already a guarantor added to a guarantee

This patchfix will pre-fill guarantor fields and address fields (so the guarantee
has the same address as the guarantor) if no relationship (existing
guarantor data exists) and a guarantor_id is handed to memberenty.pl in
URL when clicking 'Add guarantee' button on Adults patron record.

Test plan:
1. Add adult patron make sure to fill in their 'Main address' details
2. Select 'Add guarantee'
3. Observe no details of the adult patron are displaying in the
   'Guarantor information' section or 'Main address' sections of memberentry.pl
4. Select 'Search to add', search for your adult patron and choose
  'Select' to add them as guarantor
5. Fill out rest of memberentry.pl and 'Save'
6. Observe adult is showing as the guarantor
7. Apply patch
8. Run tests:
   sudo koha-shell <instancename>
   prove xt
   prove t
9. Confirm tests pass
10. Return to your adult patron
11. Select 'Add guarantee'
12. Observe in 'Guarantor information' and 'Main address' sections of
    memberentry.pl are pre-filled with the 'patron #' (borrowernumber),
    surname, firstname and street number, address, address2 (if you
    filled that in on adults account), city
13. Fill out the rest of memberenty.pl and save and confirm your adult
    patron is showing as the guarantor and the pre-filled address details
    have been saved and are showing
14. Repeat steps 10,11 and 12 and in the 'Guarantor information' select
    'Search to add' and add another adult as guarantor
15. Fill out the rest of memberentry.pl and 'Save' and notice with this
    patch applied you can still add multiple guarantors successfully

Sponsored-by: South Taranaki District Council, NZ
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: George Veranis <gveranis@dataly.gr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-20 15:20:47 +00:00
..
tables Bug 22781: Correctly filter the emails 2019-05-15 12:10:53 +00:00
accountline-details.tt
apikeys.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
boraccount.tt Bug 23051: (follow-up) Add renewal feedback and move code to subroutines and test 2020-03-06 10:03:34 +00:00
deletemem.tt Bug 24008: Display warnings in a list 2020-01-20 14:03:52 +00:00
discharge.tt
discharges.tt
files.tt
holdshistory.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
housebound.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
ill-requests.tt
mancredit.tt Bug 23805: Update mancredit to use the new credit types 2019-10-24 17:35:21 +01:00
maninvoice.tt Bug 14898: Add button at manual invoice to redirect to pay tab 2020-02-20 09:04:27 +00:00
member-flags.tt Bug 14741: Selecting all child permissions doesn't select the top level check box 2019-11-26 11:11:06 +00:00
member-password.tt Bug 22706: Add plugin hooks for Norwegian national patron database 2019-10-29 12:19:49 +00:00
member.tt Bug 17374: (follow-up) Remove spaces from include file 2020-03-10 15:18:29 +00:00
memberentrygen.tt Bug 23808: Pre-fill guarantor fields when adding guarantee to guarantor 2020-03-20 15:20:47 +00:00
members-update.tt
merge-patrons.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
moremember-brief.tt Bug 14570: (follow-up) fix qa FAIL tests 2019-08-20 16:05:14 +01:00
moremember-print.tt Bug 23049: Update existing code to use debit_type 2019-10-24 17:24:15 +01:00
moremember.tt Bug 24767: Hide the "Claim returned" tab if the feature is turned off 2020-03-16 10:57:28 +00:00
notices.tt Bug 23673: Add "Updated on" column to patron's notices 2020-02-05 14:22:43 +00:00
pay.tt Bug 23051: (follow-up) Fix renew summary display 2020-03-06 10:03:51 +00:00
paycollect.tt Bug 24495: Reword change collection feature 2020-03-18 08:45:07 +00:00
printfeercpt.tt Bug 22716: (RM follow-up) missing filter and update description 2019-05-10 14:29:13 +00:00
printinvoice.tt Bug 22809: (RM follow-up) fix missing filter and update description 2019-05-10 14:43:11 +00:00
purchase-suggestions.tt Bug 24585: Add 'Managed on' and 'Suggested on' columns to pat_purchase_suggestions.tt 2020-02-10 10:15:25 +00:00
readingrec.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
routing-lists.tt
statistics.tt
update-child.tt