I have an app which records farm livestock.
When the user is entering a calf I want to offer the next available ear tag
number.
The ear tag number has the following format. UK 107248 4 00222.
UK - County. 107248 - farm. 4 - check digit. 00222 consequetive animal
number
My prob is with the check digit. This is a check digit which goes from 1 to 7
then back to 1.
What is the best way to generate the next check digit. ?
TIA
David b
When the user is entering a calf I want to offer the next available ear tag
number.
The ear tag number has the following format. UK 107248 4 00222.
UK - County. 107248 - farm. 4 - check digit. 00222 consequetive animal
number
My prob is with the check digit. This is a check digit which goes from 1 to 7
then back to 1.
What is the best way to generate the next check digit. ?
TIA
David b