From 74cdc8693e2e821f5c8fc84742ed6aad40f051d7 Mon Sep 17 00:00:00 2001 From: sinergia Date: Sun, 3 Sep 2023 19:17:10 -0500 Subject: [PATCH] =?UTF-8?q?Se=20a=C3=B1ade=20descuento=20a=20la=20impresio?= =?UTF-8?q?n=20de=20la=20cuenta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.py b/api.py index e611fcf..238f4ce 100644 --- a/api.py +++ b/api.py @@ -60,6 +60,8 @@ def print_bill(data, address, waiter): printer.set(align='right', bold=False, height=1, width=1) printer.textln('================================================') + text = "Descuento Realizado: "+str(d["total_discount"])+"\n" + printer.text(text) text = "Total (sin impuestos): "+str(d["untaxed_amount"])+"\n" printer.text(text) text = "Impuestos (INC): "+str(d["tax_amount"])+"\n"