mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 03:30:54 +00:00
Add part stocktake to Stock Location page(s)
This commit is contained in:
@ -194,8 +194,6 @@ class StockItem(models.Model):
|
||||
|
||||
@property
|
||||
def in_stock(self):
|
||||
if self.quantity == 0:
|
||||
return False
|
||||
|
||||
if self.belongs_to or self.customer:
|
||||
return False
|
||||
@ -284,6 +282,9 @@ class StockItem(models.Model):
|
||||
""" Remove items from stock
|
||||
"""
|
||||
|
||||
if self.quantity == 0:
|
||||
return
|
||||
|
||||
quantity = int(quantity)
|
||||
|
||||
if quantity <= 0 or self.infinite:
|
||||
|
Reference in New Issue
Block a user