This commit is contained in:
Oliver Walters 2020-05-02 20:10:12 +10:00
parent b89002a450
commit 0199760e1c

View File

@ -526,7 +526,7 @@ class Part(models.Model):
This number (unlike 'available_stock') can be negative.
"""
return self.total_stock - self.allocation_count + self.on_order
return self.total_stock - self.allocation_count() + self.on_order
def isStarredBy(self, user):
""" Return True if this part has been starred by a particular user """