mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 10:34:34 +00:00
SupplierPart price break table now uses API rather than django template
This commit is contained in:
1 parent
805e8daa57
commit
e51fee081b
4 files changed
+100
-61
No files matched your search
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user