This commit is contained in:
2026-03-09 20:27:08 +01:00
parent 265b41b206
commit 039b278757
2 changed files with 69 additions and 63 deletions

View File

@@ -292,7 +292,10 @@ class Sale(metaclass=PoolMeta):
def report_price(self):
if self.lines:
if self.lines[0].price_type == 'priced':
return amount_to_currency_words(self.lines[0].unit_price)
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: