Bug 31375

Summary: Account Expiration Date Auto-updates
Product: Koha Reporter: Daniel Gaghan <daniel.gaghan>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kch-tr.lhl-consortium, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Daniel Gaghan 2022-08-16 21:27:48 UTC
A patron's account should update to the new expiration date when the account category is changed. Here is how it should work. 

User's has an account set with user category A. 
Category A expires in 2 months. 
User goes to the library and staff update the user's account to category B. 
Category B expires in 12 months. 
The user's account automatically updates from category A expiration date to category B (from 2 months to 12 months).

This should work both ways, switching to category B to category A should reduce the expiration date from 12 months to 2 months.
Comment 1 Katrin Fischer 2022-08-16 21:31:49 UTC
I think this possibly needs to be optional.

And we might need to think on how this should effect libraries that charge membership fees.
Comment 2 Katrin Fischer 2022-08-16 21:37:33 UTC
To explain why this might not work for everyone:

Say a library charges annually for membership.
There are 2 months until the patron account expires.
The category is changed and the expiry date automatically extends to 12 months like suggested.

=> We charge membership fee, as this is a renew basically: 2 months lost.
=> We don't charge fee: 10 months for free.

Maybe a pref or a confirmation message would work?
Comment 3 Daniel Gaghan 2022-08-16 21:47:16 UTC
I like the confirmation message.
Comment 4 kch-tr.lhl-consortium@nhs.net 2023-12-09 10:30:41 UTC
Any more thoughts on this? 

It really would be very useful when upgrading self-registered user accounts to full privilege accounts, much in the same way that the messaging preferences are changed when switching category types. 

Would probably work best as an optional setting to enable in sys preferences?