From 04b3c1d9240f8460ac775562bb83a5d98b0be90d Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Wed, 17 Jun 2026 09:41:57 +0200 Subject: [PATCH] DN/CN --- modules/purchase_trade/invoice.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/purchase_trade/invoice.py b/modules/purchase_trade/invoice.py index eb71bab..a22973b 100644 --- a/modules/purchase_trade/invoice.py +++ b/modules/purchase_trade/invoice.py @@ -948,13 +948,9 @@ class Invoice(metaclass=PoolMeta): invoice_total += sum( abs(self._get_report_invoice_line_weights(line)[0]) for line in negative_lines) - current_net, _ = self._get_report_lot_hist_weights(lot) - if current_net is None: - landed_total += sum( - abs(self._get_report_invoice_line_weights(line)[0]) - for line in positive_lines) - else: - landed_total += current_net + landed_total += sum( + abs(self._get_report_invoice_line_weights(line)[0]) + for line in positive_lines) matched = True if not matched: