Se añade descripción a las lineas
This commit is contained in:
parent
74cdc8693e
commit
a974acc623
7
api.py
7
api.py
@ -31,7 +31,8 @@ def print_bill(data, address, waiter):
|
|||||||
printer.text(d["shop_address"]+'\n')
|
printer.text(d["shop_address"]+'\n')
|
||||||
printer.set(align='left', bold=False, height=1, width=1)
|
printer.set(align='left', bold=False, height=1, width=1)
|
||||||
printer.textln('===============================================')
|
printer.textln('===============================================')
|
||||||
|
text = d['state']
|
||||||
|
printer.textln(text)
|
||||||
if d['invoice'] and d['invoice']['resolution']:
|
if d['invoice'] and d['invoice']['resolution']:
|
||||||
text = "Resolucion de Facturacion # " + \
|
text = "Resolucion de Facturacion # " + \
|
||||||
str(d['invoice']['resolution']['resolution_number']) \
|
str(d['invoice']['resolution']['resolution_number']) \
|
||||||
@ -139,6 +140,10 @@ def print_customer_order(data, address, waiter):
|
|||||||
|
|
||||||
text = line['product'] + " " + str(line['quantity']) + "\n"
|
text = line['product'] + " " + str(line['quantity']) + "\n"
|
||||||
printer.text(text)
|
printer.text(text)
|
||||||
|
if line['description']:
|
||||||
|
text = line['description'] + "\n"
|
||||||
|
printer.text(text)
|
||||||
|
|
||||||
if pizza == 2:
|
if pizza == 2:
|
||||||
printer.ln()
|
printer.ln()
|
||||||
pizza = 0
|
pizza = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user