Skip to content

Commit 8c5c645

Browse files
loran425loran425
authored andcommitted
finish restoring the UPC make_ean flag
1 parent 75efd93 commit 8c5c645

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

barcode/upc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ def __unicode__(self):
4848
__str__ = __unicode__
4949

5050
def get_fullcode(self):
51-
return self.upc
51+
if self.ean:
52+
return '0' + self.upc
53+
else:
54+
return self.upc
5255

5356
def calculate_checksum(self):
5457
"""Calculates the checksum for UPCA/UPC codes

0 commit comments

Comments
 (0)