From 57f95f0b7dabe116482d122a2d1492d73adb16e3 Mon Sep 17 00:00:00 2001 From: sinergia Date: Sun, 3 Mar 2024 10:18:38 -0500 Subject: [PATCH] fix: Se elimina producto Tip de Bill report --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index f7afc31..03f31f8 100644 --- a/sale.py +++ b/sale.py @@ -178,7 +178,7 @@ class Sale(metaclass=PoolMeta): "unit_price": str(line.amount_w_tax) if line.type != 'title' else None, "taxes": str(round(line.taxes[0].rate * 100, 2))+'%' if line.type != 'title' and line.taxes else None - } for line in record.lines if not line.product.tip] + } for line in record.lines if line.type == 'line' and not line.product.tip] data["total_discount"] = str(round(record.total_discount,2)) data["untaxed_amount"] = str(record.untaxed_amount)