mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Style corrections
This commit is contained in:
parent
6b1696f8df
commit
06552832cb
@ -343,7 +343,6 @@ class Part(MPTTModel):
|
|||||||
# No serial numbers found
|
# No serial numbers found
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def getNextSerialNumber(self):
|
def getNextSerialNumber(self):
|
||||||
"""
|
"""
|
||||||
Return the next-available serial number for this Part.
|
Return the next-available serial number for this Part.
|
||||||
@ -356,7 +355,6 @@ class Part(MPTTModel):
|
|||||||
else:
|
else:
|
||||||
return int(n) + 1
|
return int(n) + 1
|
||||||
|
|
||||||
|
|
||||||
def getSerialNumberString(self, quantity):
|
def getSerialNumberString(self, quantity):
|
||||||
"""
|
"""
|
||||||
Return a formatted string representing the next available serial numbers,
|
Return a formatted string representing the next available serial numbers,
|
||||||
|
@ -392,7 +392,7 @@ class VariantTest(StockTest):
|
|||||||
item.save()
|
item.save()
|
||||||
|
|
||||||
# Verify items with a non-numeric serial don't offer a next serial.
|
# Verify items with a non-numeric serial don't offer a next serial.
|
||||||
item.serial="string"
|
item.serial = "string"
|
||||||
item.save()
|
item.save()
|
||||||
self.assertEqual(variant.getNextSerialNumber(), None)
|
self.assertEqual(variant.getNextSerialNumber(), None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user