Menu

#5 Accept GTIN/EAN Check digit on Input

1.0
closed
EAN13 (2)
2017-10-06
2015-10-05
No

On GitHub,
https://github.com/zint/zint/issues/13
Sukender remarked, that generating an EAN-13 with a 13 digit message fails.
It is inputted as 12 digit and the data check digit is automatically calculated.

The proposition is to also allow 13 digit data and not calculate the check digit in this case.

Discussion

  • Harald Oehlmann

    Harald Oehlmann - 2016-10-27

    well, this is not so easy...
    Mostly, you have those numbers as 8,12,13,14 digits including the check digit. I would prefer to have a switch "calculate check digit", which is nearly never needed.
    In practice, I would:
    Accept the lengthes 8,12,13,14
    first fill left up to 14 with 0's.
    Then check, if the first is a 0, otherwise "wrong data error".
    Then remove the first and code the remaining 13 digits.

    If the switch "calculate check digit" is on, one may provide exactly 12 digits only.

    Similar treatment is for UPC-A and EAN-8, but with 2 or 6 digits removed.
    The input to the UPC-E processor may also follow the filling rules, but must do other tests.

    Robin, I would be glad if you could implement that or remove the ticket.

     
  • Robin Stuart

    Robin Stuart - 2016-11-27

    New symbologies have been implemented which accept input which includes and verifies the check digit. Can this be closed now?

     
  • Robin Stuart

    Robin Stuart - 2017-10-06
    • status: open --> closed
     
  • Robin Stuart

    Robin Stuart - 2017-10-06

    No follow-up response. Assuming problem is now resolved.

     

Log in to post a comment.