diff --git a/api.py b/api.py index 238f4ce..1ed17f7 100644 --- a/api.py +++ b/api.py @@ -31,7 +31,8 @@ def print_bill(data, address, waiter): printer.text(d["shop_address"]+'\n') printer.set(align='left', bold=False, height=1, width=1) printer.textln('===============================================') - + text = d['state'] + printer.textln(text) if d['invoice'] and d['invoice']['resolution']: text = "Resolucion de Facturacion # " + \ str(d['invoice']['resolution']['resolution_number']) \ @@ -139,6 +140,10 @@ def print_customer_order(data, address, waiter): text = line['product'] + " " + str(line['quantity']) + "\n" printer.text(text) + if line['description']: + text = line['description'] + "\n" + printer.text(text) + if pizza == 2: printer.ln() pizza = 0