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

Massaging unit tests

- Decimal fields are useful but VERY ANNOYING to use
- Needed to fix some test cases
This commit is contained in:
Oliver Walters
2019-11-19 08:59:56 +11:00
parent 400941c10f
commit 6e90ac367e
4 changed files with 22 additions and 4 deletions

View File

@ -691,7 +691,7 @@ class StockItem(models.Model):
sn=self.serial)
else:
s = '{n} x {part}'.format(
n=self.quantity,
n=helpers.decimal2string(self.quantity),
part=self.part.full_name)
if self.location: