-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for GS1 DataBar produce stickers #1214
Comments
This looks good to me. The only question that occurs to me is: does the scale have an option to drop check digits on these? A GTIN-14 that doesn't have a leading zero isn't going to fit in the 13-digit UPC fields, and widening that field throughout the project would be a big undertaking. |
AT> does the scale have an option to drop check digits on these? The length is missing in what I wrote, s/b:
I didn't find a GTIN with a non-0 first character until I'd done the above. If one is including checkdigits there isn't anything that can be done; it wouldn't have been possible to assign a |
I've tested this trap for that situation.
and then
|
Also alerts if GTIN-14 with non-zero first digit when site keeps CheckDigits, making a 14-char upc.
Also alerts if GTIN-14 with non-zero first digit when site keeps CheckDigits, making a 14-char upc.
Version of CORE? current
Issue with Office, Lane, or both? Lane
Is this [mostly] a bug report, feature request, or question? Feature request and implementation
This is about adding support for GS1 DataBar produce stickers, the ones that look like the image below. They have a GS1 barcode and usually the PLU of the item. (The number below the image of the sticker,
0100896247001111
, is what a hand scanner returns.)The scanner/scale has to be able to read this type of barcode. The Magellan 9300i/9400i Product Reference Guide p 333 PDF 345 says DataBar Omnidirectional, the type of DataBar produce stickers use, is "factory programmed" meaning the scanner/scale may need to be sent to the factory to even support being enabled. I wasn't aware of this when I ordered the unit I tested on and hadn't asked for it but it turned out to be available; I suggest you follow the enablement instructions before you assume otherwise. Even if it is available it will be disabled by default. Datalogic technical support is helpful and may be able to tell you if your unit has the feature.
Details on support and enablement of DataBar Omnidirectional on other Magellan scanner/scale models are at the end of this comment.
When I started working on this I thought the sticker DataBars would return a PLU but they actually return full UPCs (actually GTIN-14,
00896247001111
in the example above); some vendors use the PLU in their UPC but others don't. The PLU is not in a separate field after the GTIN in any of the dozen examples I've looked at. This implies that you'll need a separate Item record for each brand of stickered fruit.If you're having trouble with the capability or enablement of your scanner/scale you can scan the stickers with an enabled hand scanner. The code it reads won't be directly usable in CORE-POS but if you type
GS1~R4
and then hand-scan the sticker you'll get something likeGS1~R40100896247001111
and can see what will happen (if the changes below are implemented).GS1 DataBar (the "regular" UPC and EAN barcodes are also part of the GS1 system but are not DataBar) is detected and labelled by the scanner/scale. The scanner/scale driver, usually
SPH_Magellan_Classic
, labels it further such that it can be detected by the parsing class inUPC.php
, which distinguishes the different types of DataBars and either handles them if they identify a known item or passes them on to other methods (such as the one for DataBar Coupons) or to an unknown-item handler; latter is what currently happens with produce sticker codes.UPC.php
currently does not check for the the type of DataBar on produce stickers, for which I think Omnidirectional is the correct name, to distinguish it from the Expanded type which is used for coupons and which it does check for.UPC.php
includes code to parse Omnidirectional DataBars which , if Stacked, like the produce sticker ones usually are, can include several fields, each prefixed by an Application Identifier (AI). The AI for a GTIN-14 is01
.UPC.php
includes a test for10
, not01
, under a comment that says it is testing for GTIN-14.10
is also a legal AI but it refers to Batch/Lot which is not used in CORE-POS.The CORE-POS Wiki page GS1 DataBar Support includes a description of the code for the GS1 DataBar "regular" (Omnidirectional) and the GTIN Application Indicator. If
UPC.php
is meant to be the implementation of that then I suggest the following changes to theUPC
class and its methods:If this is acceptable I can put it in a pull request.
The reference for GS1, including DataBar, is GS1 General Specifications Standard v24
GS1 DataBar Support and Enablement in other Magellan scanner/scales:
The Magellan SL Installation and Operation manual (for the SL38x line) p 1-13 PDF p19 does not list DataBar among the Barcodes Supported.
The Magellan 8100 Manual 6-165 PDF p273 and following uses the older terminology "RSS" for GS1 Databar. It has a similar comment about "factory programmed". I've not been able to try the 8100/8200 scanner/scales. The 8100 also supports RSS Expanded for coupons.
The Magellan 8300/8400 Product Reference Guide p347 PDF p359 and following, uses the term DataBar and has the same comment about "factory programmed".
The Magellan 8500/8500-omega Product Reference Guide p6-167 PDF p273 and following uses the RSS terminology. It has a similar comment about "factory programmed".
The text was updated successfully, but these errors were encountered: