Merge pull request #283 from SchrodingersGat/can-build

If a part has no bom items, the 'can_build' function now returns zero
This commit is contained in:
Oliver 2019-05-09 18:39:06 +10:00 committed by GitHub
commit a94f4baa55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,7 +284,7 @@ class Part(models.Model):
# If this part does NOT have a BOM, result is simply the currently available stock
if not self.has_bom:
return self.available_stock
return 0
total = None