Bug 22707

Summary: Allow manual definition of AutoMemberNum range
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, jzairo, kelly, kyle.m.hall, nick, sally.healey
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19958
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Andrew Fuerste-Henry 2019-04-15 14:31:25 UTC
It'd be great to have a way to tell Koha where to start when assigning card numbers via AutoMemberNum and to see what the next number will be. 

Bug 19263 introduced a feature that uses an authorized value to set up ranges of auto-incremented control numbers in bib records. Could something similar be used for card numbers?

Ideally, this could also allow the definition of separate card number ranges for different branches.
Comment 1 Andrew Fuerste-Henry 2020-03-20 12:26:35 UTC
Our current flood of libraries trying to set up online self-reg is highlighting the problems with AutoMemberNum as it exists now. Giving this a bump.
Comment 2 Andrew Fuerste-Henry 2020-04-10 20:02:41 UTC
A couple suggestions from a librarian:
1. Able to specify a card number length, and a starting number (or a range).
2. Able to randomize a bit when incrementing, for example, NewCardNumber = CurrentLargestNumber += RandomNumberBetween(0~10)
Comment 3 Sally 2022-03-10 13:54:23 UTC
Being able to specify a starting number or range would be great.

It would also be useful to have on/off settings for the OPAC and staff client.  

For instance, to only generate a card number when a staff member creates an account via the staff client, but not when someone joins online.

Or the opposite, to only generate a card number when a patron joins online, but not when a member of staff creates an account via the staff client.