main #7
@@ -275,14 +275,14 @@ class Sale(metaclass=PoolMeta):
|
|||||||
@property
|
@property
|
||||||
def report_gross(self):
|
def report_gross(self):
|
||||||
if self.lines:
|
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:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def report_net(self):
|
def report_net(self):
|
||||||
if self.lines:
|
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:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user