Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new profile field type for auto increment #1220

Open
Fasse opened this issue Feb 13, 2022 · 0 comments
Open

Add new profile field type for auto increment #1220

Fasse opened this issue Feb 13, 2022 · 0 comments

Comments

@Fasse
Copy link
Member

Fasse commented Feb 13, 2022

We should add a new profile field type which we can use to autoincrement the values of that field. This could be useful for member numbers.

We should allow to set a prefix and suffix. The user could define a format for the field value e.g. MEM-ID-######-F
The placeholder ###### could be used to add a number. Therefore we need another new database field where we store the current value which will be used for the placeholder.

If we want to store a new user we create a new number with the next available value if that field e.g. MEM-ID-34338-F . Before we save the user we must check if this ID is not used.

If there are more than one placeholder and the current number is lower than all placeholders we fill the beginning with zero. e.g. MEM-ID-00032-F

@Fasse Fasse added this to the v4.2 milestone Feb 13, 2022
@Fasse Fasse self-assigned this Feb 13, 2022
@Fasse Fasse modified the milestones: v4.2, Future May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant