https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22707
--- Comment #12 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 199834 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199834&action=edit Bug 22707: Show next auto-generated card number as a hint on the patron form When autoMemberNum is enabled and the card number field is not mandatory, memberentry.pl now calls Koha::Patron::AutoNumber->peek() and passes the result to the template. The patron form shows: "Leave blank for auto calc during registration — next available: XXXXX" Because peek() is advisory (no lock taken), the displayed value is the likely next number but may differ from the one actually assigned at save time if another patron is saved concurrently. Test plan: 1. Enable autoMemberNum in System Preferences. 2. Go to Patrons > New patron. 3. Navigate to the Library management tab (step 3). 4. Confirm the card number hint reads "Leave blank for auto calc during registration — next available: XXXXX" with the expected next value. 5. With autoMemberNumFormat set to 'ean13', confirm the hint shows a valid 13-digit EAN-13 barcode. 6. Save the patron and confirm the assigned card number matches (or is close to) the hinted value. 7. Confirm the hint is absent when card number is listed in BorrowerMandatoryField (the existing error message should appear instead). -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
