This commit is contained in:
2026-03-27 06:51:43 +01:00
parent af4ae99dc0
commit 0979021f41
3 changed files with 16 additions and 8 deletions

View File

@@ -101,6 +101,12 @@ class Invoice(metaclass=PoolMeta):
return line.product.description or ''
return ''
@property
def report_description_upper(self):
if self.lines:
return (self.lines[0].description or '').upper()
return ''
@property
def report_crop_name(self):
trade = self._get_report_trade()
@@ -288,6 +294,10 @@ class InvoiceLine(metaclass=PoolMeta):
return origin.product.description or ''
return ''
@property
def report_description_upper(self):
return (self.description or '').upper()
@property
def report_crop_name(self):
trade = self._get_report_trade()
@@ -313,4 +323,4 @@ class InvoiceLine(metaclass=PoolMeta):
net = self.report_net
if net == '':
return ''
return Decimal(net) * Decimal('2.20462')
return round(Decimal(net) * Decimal('2204.62'),2)