mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 11:04:35 +00:00
Support non-integer serial numbers
This commit is contained in:
1 parent
eeca3effee
commit
f7ed48809c
5 files changed
+28
-15
No files matched your search
@@ -346,8 +346,10 @@ class Part(MPTTModel):
|
||||
|
||||
if n is None:
|
||||
return 1
|
||||
else:
|
||||
elif n is int:
|
||||
return n + 1
|
||||
else:
|
||||
return None
|
||||
|
||||
def getSerialNumberString(self, quantity):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user