02.04.26
This commit is contained in:
@@ -389,15 +389,15 @@ class Sale(metaclass=PoolMeta):
|
||||
@property
|
||||
def report_price(self):
|
||||
if self.lines:
|
||||
if self.lines[0].price_type == 'priced':
|
||||
if self.lines[0].linked_price:
|
||||
return amount_to_currency_words(self.lines[0].linked_price,'USC','USC')
|
||||
else:
|
||||
return amount_to_currency_words(self.lines[0].unit_price)
|
||||
elif self.lines[0].price_type == 'basis':
|
||||
return amount_to_currency_words(self.lines[0].unit_price) + ' ' + self.lines[0].get_pricing_text()
|
||||
else:
|
||||
return ''
|
||||
if self.lines[0].price_type == 'priced':
|
||||
if self.lines[0].linked_price:
|
||||
return amount_to_currency_words(self.lines[0].linked_price,'USC','USC')
|
||||
else:
|
||||
return amount_to_currency_words(self.lines[0].unit_price)
|
||||
elif self.lines[0].price_type == 'basis':
|
||||
return amount_to_currency_words(self.lines[0].unit_price) + ' ' + self.lines[0].get_pricing_text
|
||||
else:
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_delivery(self):
|
||||
|
||||
Reference in New Issue
Block a user