mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
Accept "CODABAR" as an alias for "NW7" in barcode()
This commit is contained in:

committed by
Patrick Kanzler

parent
e988873999
commit
3e89a10bed
@@ -342,7 +342,7 @@ class Escpos(object):
|
||||
self._raw(BARCODE_CODE39)
|
||||
elif bc.upper() == "ITF":
|
||||
self._raw(BARCODE_ITF)
|
||||
elif bc.upper() == "NW7":
|
||||
elif bc.upper() in ("NW7", "CODABAR"):
|
||||
self._raw(BARCODE_NW7)
|
||||
else:
|
||||
raise BarcodeTypeError(bc)
|
||||
|
Reference in New Issue
Block a user