If the no_checksum option is passed, A 13 digits code should be accepted as it is.
At the moment, the last digit is replaced by a 0 and it cannot be otherwise:
digits = 12
ean = ean[:self.digits]
# Add a thirteen char if given in parameter,
# otherwise pad with zero
self.ean = '{0}{1}'.format( ean, ean[self.digits] if len(ean) > self.digits else 0)
len(ean) > self.digits is never going to happen
If the no_checksum option is passed, A 13 digits code should be accepted as it is.
At the moment, the last digit is replaced by a 0 and it cannot be otherwise:
```python
digits = 12
ean = ean[:self.digits]
# Add a thirteen char if given in parameter,
# otherwise pad with zero
self.ean = '{0}{1}'.format( ean, ean[self.digits] if len(ean) > self.digits else 0)
```
`len(ean) > self.digits` is never going to happen