mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
handle non-int serial range suggestions cleanly
This commit is contained in:
parent
d5a374f1fd
commit
0da2682c68
@ -367,6 +367,9 @@ class Part(MPTTModel):
|
||||
|
||||
sn = self.getNextSerialNumber()
|
||||
|
||||
if sn is None:
|
||||
return None
|
||||
|
||||
if quantity >= 2:
|
||||
sn = "{n}-{m}".format(
|
||||
n=sn,
|
||||
|
Loading…
Reference in New Issue
Block a user