Page 1 of 1

Check Digit GTIN

Posted: Sat Aug 25, 2012 12:30 am
by danielmaximiliano
Hola a todos :
Siguiendo con mi sistema Punto de ventas (PTV)
necesitaba introducir mediante un lector de codigos de barra los distintos productos GS1.
tanto en EAN13 ahora GTIN-13 y EAN-8 ahora GTIN-8, en distintos lugares encontre funciones para generar el digito validador del codigo introducido y habia que adaptarlo de forma sencilla y usarlo con Harbour/HMG.
Realmente no es necesario cuando se usa un lector de barras, sino porque a veces el lector no reconoce el codigo y hay que introducirlo manualmente y el operador de turno se puede confundir o teclear incorrectamente el codigo numerico.
esto hace que un articulo este en la tabla erroneamente.


para verificar un codigo se puede usar la siguiente URL: http://www.gs1.org.ar/SER_calculodv.asp
Check Digit.png
Check Digit.png (242.78 KiB) Viewed 8167 times
aqui les dejo el codigo :
GTIN_Check.rar
(2.08 KiB) Downloaded 568 times
por algun motivo no puedo pegar el codigo fuente en este post. Mr Ratinagiri puede usted comprobar esta falla hoy ?
Crimson Editor.png
Crimson Editor.png (29.51 KiB) Viewed 8167 times

Hi all:
Following my system sales point (P.O.S)
needed to enter through a bar code reader GS1 different products.
EAN13 both now GTIN-13 and EAN-8 now GTIN-8, in different places I found functions to generate the validator digit code entered and had to adapt it easily and use it with Harbour / HMG.
It really is not necessary when using a barcode reader, but because sometimes the reader does not recognize the code and have to enter it manually and the shift operator can be confused or incorrectly typing the numerical code.
this makes this an item in the table erroneously.

to verify a code you can use the following URL:http://www.gs1.org/barcodes/support/che ... calculator

here I leave the code:[attachment=1]GTIN_Check.rar[/attachment]
for some reason I can not paste the source code in this post. Mr Ratinagiri can you check this fault today?

Re: Check Digit GTIN

Posted: Sat Aug 25, 2012 12:33 am
by danielmaximiliano
Crimson Editor.png
Crimson Editor.png (29.51 KiB) Viewed 8166 times
Crimson Editor2.png
Crimson Editor2.png (11.53 KiB) Viewed 8166 times

Re: Check Digit GTIN

Posted: Sat Aug 25, 2012 9:01 pm
by dhaine_adp
Hola Daniel,

Thank you very much for the sample and for sharing the code (HB/HMG implementation). Simple and robust.

Regards,

Danny

Re: Check Digit GTIN

Posted: Sun Aug 26, 2012 3:37 am
by bpd2000
Excellant
Thank you for code

Re: Check Digit GTIN

Posted: Mon Aug 27, 2012 12:07 am
by danielmaximiliano
Hola a Todos :
Puede susceder que su aplicacion TPV no pueda reconocer los codigos UPC, le sucedio a mi cliente que al intentar cargar una bateria Duracell el programa no reconocio al producto para agregarlo al Stock.
041333000992.png
041333000992.png (98.92 KiB) Viewed 8055 times
como ven en la imagen es posible agregar un 0 (cero) a los 12 digitos que conforman el codigo UPC. y de esta forma es reconocible como EAN-GTIN13
Crimson Editor - [DLosTilosFuentesStock.png
Crimson Editor - [DLosTilosFuentesStock.png (6.73 KiB) Viewed 8054 times

Hi Everyone:
Can susceder your POS application may not recognize the UPC codes, customer happened to me when trying to load a Duracell battery the program did not recognize the product to add to stock.
[attachment = 0] 041333000992.png [/ attachment]

as seen in the picture you can add a 0 (zero) to the 12-digit UPC code form. and thus is recognizable as EAN-GTIN13

Crimson Editor - [DLosTilosFuentesStock.png
Crimson Editor - [DLosTilosFuentesStock.png (6.73 KiB) Viewed 8054 times
Mr. Rathinagiri:
can you tell me why I can not post part of the code that is in the picture, I could always post code enclosed within ''

Re: Check Digit GTIN

Posted: Mon Aug 27, 2012 3:25 am
by Rathinagiri
Hi Daniel,

The server we are hosting our forum has deployed some security scripts for avoiding various DoS attacks. The script doesn't allow to process the reserved word s u b s t r. You can not post s u b s t r even inside a post and also inside a 'code' tag. I am so sorry, I could not solve this for many times.

Re: Check Digit GTIN

Posted: Mon Aug 27, 2012 3:55 am
by danielmaximiliano
rathinagiri wrote:Hi Daniel,

The server we are hosting our forum has deployed some security scripts for avoiding various DoS attacks. The script doesn't allow to process the reserved word s u b s t r. You can not post s u b s t r even inside a post and also inside a 'code' tag. I am so sorry, I could not solve this for many times.
Thanks Rathi:
I will take this into account. in the event you can not post'll put the code snippet posted as an image.

Re: Check Digit GTIN

Posted: Thu Aug 30, 2012 9:34 pm
by danielmaximiliano
Hi everyone :

Code was added to correct the error in finished verification codes
to 0 (zero)
Add check digit control.jpg
Add check digit control.jpg (56.34 KiB) Viewed 7941 times