Example: Generation of Numeric Bar Code

Suppose the values for the five data fields are:

  • C.U.I.T number: 23467812399

  • AFIP legal document type: 003 (Release 9.2 Update)

  • Issue place: 12222 (Release 9.2 Update)

  • C.A.I. number: 65432165432111

  • C.A.I. due date: 06062005

The business function concatenates the characters to produce this string: 23467812399003122226543216543211106062005 (Release 9.2 Update)

  1. Sums the characters in the odd positions to produce a value of 69.

  2. Multiplies 69 by 3 to equal 207.

  3. Sums the characters in the even positions to produce a value of 58.

  4. Sums 207 and 58 to equal 265.

  5. Determines the check digit to be five because five is the lowest number, which when added to 265, returns a number which is divisible by 10.

  6. Produces a numeric value for the bar code that is equal to the original string with the check digit of five added to the end of the string for a value of: 234678123990031222265432165432111060620055 (Release 9.2 Update).