Koha/members
Andrew Isherwood a2449a81be
Bug 23051: (follow-up) Add renewal feedback and move code to subroutines and test
Rebasing was a nightmare, so I'm squashing the sign off follow-ups to
ease the pain with any future rebases

Includes:

Bug 23051: (follow-up) Refactor renewal code
As per Nick's first point in comment #20, the code that tests for
renewability and renews items has been refactored into it's own
function.

Bug 23051: (follow-up) Provide feedback
For renewals that fail when a fine is being paid off, this patch causes
any errors to be passed back to the template for display.
Addresses the second point in Nick's comment #20

Bug 23051: (follow-up) Fix unit tests
As raised by Nick in comment #35

Bug 23051: (follow-up) Fix/improve feedback
This follow up patch addresses the following parts of Nick's feedback in
comment #35:
- it would be nice to get feedback on what was successfully renewed as well
- In general I think I would prefer to see 'ok' and 'not_ok' returned as
a single 'renewal_results' array
- There is no listing of errors if I use the 'pay' button on an
individual fine

Bug 23051: (follow-up) Refactor methods
This follow up patch addresses the following parts of Nick's feedback in
comment #35:
- I don't really like that the functions are internal functions and then
exported
- I think the pref description should highlight that if 'RenewalPeriodBase'
is set to due date, there may be doubled charges

Bug 23051: (follow-up) Add SIP summary
This follow up patch addresses the following parts of Nick's feedback in
comment #35:
- Ideally SIP would get feedback in a screen message

Bug 23051: (follow-up) Renewing in OPAC
This follow up patch addresses the following parts of Nick's feedback in
comment #35:
- I am also not sure about the code path if a patron paid fines on the
opac (via paypal etc.) but renewals are not allowed on the opac.

We've introduced the syspref RenewAccruingItemInOpac (default is off)
which, when enabled, will cause items attached to fines that are paid
off in the OPAC (via payment plugins), to be automatically renewed.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-06 10:03:34 +00:00
..
accountline-details.pl
apikeys.pl
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 19809: Re-allow to call Koha::Objects::find in list context 2020-01-23 10:27:28 +00: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 24018: Remove die "Not logged in" 2020-01-20 14:03:49 +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