SupplierPart price break table now uses API rather than django template

This commit is contained in:
Oliver Walters committed 2020-09-17 23:19:50 +10:00
1 parent 805e8daa57
commit e51fee081b
4 files changed
+100 -61

No files matched your search

+8
View File
@@ -176,6 +176,14 @@ class PriceBreak(models.Model):
currency = models.ForeignKey(Currency, blank=True, null=True, on_delete=models.SET_NULL)
@property
def symbol(self):
return self.currency.symbol if self.currency else ''
@property
def suffix(self):
return self.currency.suffix if self.currency else ''
@property
def converted_cost(self):
"""