From e2400b75e3f8a71ab9fe349000e1872fb0995877 Mon Sep 17 00:00:00 2001 From: sinergia Date: Sun, 19 Nov 2023 23:15:52 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Se=20a=C3=B1ada=20total=5Fdiscount=5Fcah?= =?UTF-8?q?ce=20in=20get=5Famount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sale.py b/sale.py index b5e48ab..75ae548 100644 --- a/sale.py +++ b/sale.py @@ -80,7 +80,8 @@ class Sale(metaclass=PoolMeta): if (sale.state in cls._states_cached and sale.untaxed_amount_cache is not None and sale.tax_amount_cache is not None - and sale.total_amount_cache is not None): + and sale.total_amount_cache is not None + and sale.total_discount_cache is not None): untaxed_amount[sale.id] = sale.untaxed_amount_cache total_discount[sale.id] = sale.total_discount_cache if compute_taxes: