2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Fix unit tests

This commit is contained in:
Oliver Walters
2020-11-03 20:19:24 +11:00
parent b936f67d87
commit 2b91f69c7d
9 changed files with 267 additions and 87 deletions

View File

@ -1060,7 +1060,7 @@ class StockItem(MPTTModel):
if self.updateQuantity(count):
self.addTransactionNote('Stocktake - counted {n} items'.format(n=count),
self.addTransactionNote('Stocktake - counted {n} items'.format(n=helpers.normalize(count)),
user,
notes=notes,
system=True)
@ -1089,7 +1089,7 @@ class StockItem(MPTTModel):
if self.updateQuantity(self.quantity + quantity):
self.addTransactionNote('Added {n} items to stock'.format(n=quantity),
self.addTransactionNote('Added {n} items to stock'.format(n=helpers.normalize(quantity)),
user,
notes=notes,
system=True)
@ -1115,7 +1115,7 @@ class StockItem(MPTTModel):
if self.updateQuantity(self.quantity - quantity):
self.addTransactionNote('Removed {n} items from stock'.format(n=quantity),
self.addTransactionNote('Removed {n} items from stock'.format(n=helpers.normalize(quantity)),
user,
notes=notes,
system=True)