11.03.26
This commit is contained in:
@@ -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 ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user