2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

SupplierPart price break table now uses API rather than django template

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

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):
"""