Bar Code String Generator - ARG - 42 (N76A510)

The Bar Code String Generator - ARG - 42 business function obtains the data required for the bar code from these fields, and then generates a check digit:

  • C.U.I.T number (11 numeric characters obtained from data item TAX in the F76AUI20 table).

  • AFIP legal document type (three numeric characters obtained from the first three characters in data item VINV in the F76A09 table) (Release 9.2 Update).

  • Issue place (five numeric characters obtained from data item ACEM1 in the F76AUI20 table) (Release 9.2 Update).

  • C.A.I. number (14 numeric characters obtained from data item ACAI in the F76AUI20 table).

  • C.A.I. due date (eight numeric characters obtained from data item CXPJ in the F76AUI20 table).

The business function concatenates the values of the five data fields in the order listed and then adds the check digit to the end of the string to produce the numeric value of the bar code. To calculate the check digit, the system:

  1. Sums the characters in the odd number positions (positions 1, 3, 5, and so on), beginning from the left of the string of characters.

  2. Multiplies the sum obtained in the first step by 3.

  3. Sums the characters in the even number positions (positions 2, 4, 6, and so on), beginning from the left of the string of characters.

  4. Sums the values obtained in steps 2 and 3.

  5. Determines the check digit to be the lowest number which, when added to the value that was determined in step 4, equals a multiple of 10.