The 12th digit for UPC code is optional for submission, since it can be calculated at the time of generation. However, when a user submits the barcode with 11 digits, the generator didn't calculate the 12 digit, instead put a 0 in front of the numbers.
This could be a problem of generator.
Comments
Comment #1
slip commentedIn _ean13CheckDigit
There's:
Does changing the '13' to '12' work?
Comment #2
skyredwangI wrote the validation before, but there was a bug that has prevented it working.
I committed the change, maybe you want to port it to 2.x.
in
change
to
Comment #4
aCCa commentedHaving similar problem with ean-13, in the function barcode_ean_check_digit in ean.inc
Seems that even the code is filled up with zeros in front correctly, the $csum_total variable is wrong and the function return the barcode + the checksum digit.
The problem is that it encode this (barcode + checksum_digit) to the image, generating a wrong barcode image.
Comment #5
aCCa commentedProblem a bit different.
Created specific bug report: http://drupal.org/node/1145074