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: