Checksum configuration

The Checksum configuration defines how Infor Public Sector calculates check digits. A check digit is a single digit that is calculated based on a string of digits to detect data entry errors. For example, check digits are often be used to verify the digits in each scan line in a bill output file.

The Checksum configuration defines several different check digit algorithms. Given a string of digits, an algorithm begins by multiplying each digit by a set value, then adds the products of these calculations, and then performs a modulo operation on the resulting sum. The result of the modulo operation is the check digit, which is then added to the end of the string. If the check digit is later recalculated, a different result indicates there is an error in the string.

The Checksum configuration has a root Checksum node with one or more Algorithm nodes as children. Each Algorithm node can have these attributes:

Attribute Description
Algorithm Name Name of the check digit algorithm.
Processing Direction Direction in which the algorithm processes the digits in the string. Can be either LeftToRight or RightToLeft.
Multipliers Values by which the algorithm will multiply each successive digit in the string. If you enter more than one value, the algorithm will cycle through the values until it reaches the end of the string. For example, if you enter 3,2,1, the algorithm will multiply the first digit by 3, the second digit by 2, the third digit by 1, the fourth digit by 3, and so on.
Add Digits Indicates how the algorithm will add the values calculated based on the multipliers. If you set this attribute to True, the algorithm will add the individual digits of these products. For example, 12 and 27 would be added as 1 + 2 + 2 + 7. If you set this attribute to False, the algorithm will add the whole values (12 + 27).
Modulus Value by which the sum of the digits is divided to produce the check digit. The check digit is the remainder of this division. For example, if the modulus is 11, a sum of 324 produces a check digit of 5 (324 mod 11).
Ten Representation Digit that will be used if the result of the calculation is 10.