09.03.26
This commit is contained in:
@@ -277,6 +277,16 @@ class Sale(metaclass=PoolMeta):
|
||||
return quantity_to_words(self.lines[0].quantity)
|
||||
else:
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_nb_bale(self):
|
||||
text_bale = 'Nb Bales: '
|
||||
nb_bale = 0
|
||||
if self.lines:
|
||||
for line in self.lines:
|
||||
if line.lots:
|
||||
nb_bale += sum([l.lot_qt for l in line.lots if l.lot_type == 'physic'])
|
||||
return text_bale + str(nb_bale)
|
||||
|
||||
@property
|
||||
def report_price(self):
|
||||
|
||||
Reference in New Issue
Block a user