mirror of
https://bitbucket.org/presik/presik_pos.git
synced 2023-12-14 06:03:00 +01:00
test
This commit is contained in:
parent
4177e06ab9
commit
43461c039c
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue