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