This commit is contained in:
2026-06-17 09:46:57 +02:00
parent 04b3c1d924
commit c268c3b460
2 changed files with 4 additions and 1 deletions

View File

@@ -949,7 +949,7 @@ class Invoice(metaclass=PoolMeta):
abs(self._get_report_invoice_line_weights(line)[0])
for line in negative_lines)
landed_total += sum(
abs(self._get_report_invoice_line_weights(line)[0])
abs(self._get_report_invoice_line_quantity_from_line(line))
for line in positive_lines)
matched = True

View File

@@ -6817,6 +6817,9 @@ class PurchaseTradeTestCase(ModuleTestCase):
quantity=Decimal('999.990'),
unit=mt,
lot=shared_lot,
lot_weight_snapshots=[
Mock(net_quantity=Decimal('999995'), gross_quantity=Decimal('999992'), unit=kg),
],
)
invoice = Invoice()