mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
Bug fix
This commit is contained in:
@ -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 """
|
||||
|
Reference in New Issue
Block a user