feat: Se añade Propina al final de la cuenta

This commit is contained in:
sinergia 2024-02-27 17:09:12 +00:00
parent be238e8e48
commit 2157e8a015

2
api.py
View File

@ -63,6 +63,8 @@ def print_bill(data, address, waiter):
printer.textln('================================================')
text = "Descuento Realizado: "+str(d["total_discount"])+"\n"
printer.text(text)
text = "Propina: "+str(d["total_tip"])+"\n"
printer.text(text)
text = "Total (sin impuestos): "+str(d["untaxed_amount"])+"\n"
printer.text(text)
text = "Impuestos (INC): "+str(d["tax_amount"])+"\n"