mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-11 17:45:39 +00:00
handle non-int serial range suggestions cleanly
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user