Accept "CODABAR" as an alias for "NW7" in barcode()
This commit is contained in:
parent
9885deaa59
commit
5b1e6348e5
|
@ -192,7 +192,7 @@ class Escpos:
|
||||||
self._raw(BARCODE_CODE39)
|
self._raw(BARCODE_CODE39)
|
||||||
elif bc.upper() == "ITF":
|
elif bc.upper() == "ITF":
|
||||||
self._raw(BARCODE_ITF)
|
self._raw(BARCODE_ITF)
|
||||||
elif bc.upper() == "NW7":
|
elif bc.upper() in ("NW7", "CODABAR"):
|
||||||
self._raw(BARCODE_NW7)
|
self._raw(BARCODE_NW7)
|
||||||
else:
|
else:
|
||||||
raise BarcodeTypeError(bc)
|
raise BarcodeTypeError(bc)
|
||||||
|
|
Loading…
Reference in New Issue