This commit is contained in:
2026-06-17 09:41:57 +02:00
parent d8012bd2da
commit 04b3c1d924

View File

@@ -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: