GTIN-14 Named Data Source with and without check digit.
I have a data source for the AID (01) GTIN-14 that includes all 14 digits. But it seems Bartender only wants 13, and BT will calculate the check digit. So I truncated the 14th digit for the GS1 Barcode. But I have a separate field for the GTIN human readable that needs to be 14 digits. But If I trim the data source it is trimmed for both fields. How do I accomplish this?
-
If you are using a separate text item for your Haman Readable then you have two options:
- Add a VB Script object that adds the UCCMod10 check digit to the end of the text string (per the image below)
- Cheat! Add a second identical barcode, apart from with the human readable enabled, onto the label and shrink/set the barcode size to zero which just leaves the human readable showing
Note: for the VB I had named the GTIN part of the barcode as BCode so I could reference it from the Named Data Sources list in the VB window and used the Functions>Check Digits option to access the UCCMod10 routine. For this method, if your data is coming in from a database or Data Entry screen then making the field an EventControlledScript maybe a better option to ensure the VB is applied when the data is present (eg OnNewRecord for database info etc)
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar