Se añade descuento a la impresion de la cuenta

This commit is contained in:
sinergia 2023-09-03 19:17:10 -05:00
parent f5d76bd92c
commit 74cdc8693e

2
api.py
View File

@ -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"