This commit is contained in:
2026-03-11 21:33:42 +01:00
parent 2fba795b11
commit 4a14a78f78

View File

@@ -275,14 +275,14 @@ class Sale(metaclass=PoolMeta):
@property
def report_gross(self):
if self.lines:
return sum([l.get_current_gross_quantity_converted() for l in self.lines if l.lot_type == 'physic'])
return sum([l.get_current_gross_quantity_converted() for l in self.lines[0].lots if l.lot_type == 'physic'])
else:
return ''
@property
def report_net(self):
if self.lines:
return sum([l.get_current_quantity_converted() for l in self.lines if l.lot_type == 'physic'])
return sum([l.get_current_quantity_converted() for l in self.lines[0].lots if l.lot_type == 'physic'])
else:
return ''