Giter Club home page Giter Club logo

Comments (5)

toretore avatar toretore commented on September 27, 2024

0 is the check digit for this number. If your scanner is UPC-specific it will probably discard the first 0; try changing the number, scanning it and comparing with the check digit (barcode.checksum) and see if it is the case.

from barby.

jheathco avatar jheathco commented on September 27, 2024

It appears that certain applications scan it correctly, others don't. However, the resulting barcode is different than the one I received pre-generated from the company I purchased the UPC from. Do you know why that might be?

Edit:
The others that are scanning it "correctly" are still appending a 0. Something is definitely off...

from barby.

toretore avatar toretore commented on September 27, 2024

Can you show the pregeneratrd one?
On Nov 24, 2015 11:58 PM, "jheathco" [email protected] wrote:

It appears that certain applications scan it correctly, others don't.
However, the resulting barcode is different than the one I received
pre-generated from the company I purchased the UPC from. Do you know why
that might be?


Reply to this email directly or view it on GitHub
#54 (comment).

from barby.

jheathco avatar jheathco commented on September 27, 2024

Sure.

http://drop.johnheathco.com/ryAjV

Here is the one Barby is generating:

http://drop.johnheathco.com/tT4hy

from barby.

toretore avatar toretore commented on September 27, 2024

The initial 0 is part of the number, not a UPC designator. This should generate the correct version:

Barby::EAN13.new('009103795804')

or

Barby::UPCA.new('09103795804')

from barby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.