This commit is contained in:
2026-03-09 18:17:32 +01:00
parent d70a784db8
commit cc8540ee91
2 changed files with 90 additions and 64 deletions

View File

@@ -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):