From a974acc62337a5c8e7313387d87ecb5d4206de6f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Sep 2023 01:17:49 +0000 Subject: [PATCH] =?UTF-8?q?Se=20a=C3=B1ade=20descripci=C3=B3n=20a=20las=20?= =?UTF-8?q?lineas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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