Check Digit GTIN

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Check Digit GTIN

Post 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 7406 times
aqui les dejo el codigo :
GTIN_Check.rar
(2.08 KiB) Downloaded 545 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 7406 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?
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Check Digit GTIN

Post by danielmaximiliano »

Crimson Editor.png
Crimson Editor.png (29.51 KiB) Viewed 7405 times
Crimson Editor2.png
Crimson Editor2.png (11.53 KiB) Viewed 7405 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: Check Digit GTIN

Post 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
Regards,

Danny
Manila, Philippines
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Check Digit GTIN

Post by bpd2000 »

Excellant
Thank you for code
BPD
Convert Dream into Reality through HMG
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Check Digit GTIN

Post 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 7294 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 7293 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 7293 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 ''
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Check Digit GTIN

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Check Digit GTIN

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Check Digit GTIN

Post 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 7180 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply