If you have autoMemberNum turned on it doesn't check the CardnumberLength system preference when generating a number. Example: - last cardNumber is '002150'. - CardnumberLength set to '6'. - autoMemberNum turned on. When I create new patron and save it, then the new cardNumber generated by system via autoMemberNum will be '2151' and not '002151' as expected due CardnumberLength set to '6'.
Hi Fernando, CardnumberLength is supposed to be used for checking that entered cardnumbers are valid. It doesn't work the way you want to in adding the leading zeros. The autoMemberNum is just made to add 1 to the biggest cardnumbernumber in your system. At the moment it can't handle adding leading zeros, but I think that would have to be a separate pref or option.
This would be a great enhancement!