This commit is contained in:
Oscar Alvarez 2021-01-13 11:36:43 -05:00
parent 4177e06ab9
commit 43461c039c

View file

@ -540,6 +540,8 @@ class Receipt(object):
host = dev_printers[order['host']]
else:
host = order['host']
print('host...', host)
if order['interface'] == 'usb':
self._printer = printer.File(host)
elif order['interface'] == 'network':
@ -574,6 +576,7 @@ class Receipt(object):
# Exists 2 types of order:
# command => For restaurants kitchens
# dispatch => For external dispatch
print('self._printer ', self._printer)
self._printer.set(font=_FONT_B)
self._printer.set(align='center')
turn = order.get('turn')