Creating custom check digit – QuickLabel Designer Pro User Manual
Page 164

- 164 -
3. In the right side of the dialog box select already prepared data connection or create a new
one.
4. Once you have the ODBC data connection prepared, select it and close the dialog.
5. The fields from the selected database can now be used on the label.
Creating Custom Check Digit
Creating Custom Check Digit
You can add new or edit and delete existing algorithms by clicking appropriate buttons. Algorithm's
parameters are defined in Edit algorithm dialog box, which has following options:
Editing check digit algorithm
To understand all parameters, you must know, how check digit is calculated. First of all, we must
have a numeric value and on top of that the check digit will be calculated. If weights are required,
we will need them as well. Let's look at EAN13 check digit calculation:
Value: 123456789012
Weights: 1, 3
When starting calculating, each digit has its weight. When only two weights are specified, the third
digit gets the first weight, the forth the second, and so on. If only one weight is specified, all digits
have the same weight. According to Sum determination, we can use weights (sum of the products) or
not (sum of the digits). EAN13 algorithm uses products, so we define Sum of the products.
The sum is: 1×1 + 2×3 + 3×1 + 4×3 + 5×1 + ..... + 2×3
When the sum is calculated, we take modulus parameter and divide the sum with that number and
remember the remainder of division. This can already be the result.
If Result complemented is specified, we subtract the result from modulus and so we get the new
value. When this value is less than 10, we already got check digit. If it is greater value (two digits),
we take the whole value or just the least significant digit (One digit only) as the result of check digit
algorithm.