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