mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
commit
a9abea2c7c
@ -115,11 +115,10 @@ class StockItem(models.Model):
|
||||
q = self.quantity + amount
|
||||
if q < 0:
|
||||
q = 0
|
||||
|
||||
|
||||
self.quantity = q
|
||||
self.save()
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return "{n} x {part} @ {loc}".format(
|
||||
n=self.quantity,
|
||||
|
Loading…
Reference in New Issue
Block a user