mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-09 07:00:56 +00:00
fix reused builtins
This commit is contained in:
@ -446,10 +446,10 @@ class PartSerialNumberDetail(generics.RetrieveAPIView):
|
||||
}
|
||||
|
||||
if latest is not None:
|
||||
next = increment(latest)
|
||||
next_serial = increment(latest)
|
||||
|
||||
if next != increment:
|
||||
data['next'] = next
|
||||
if next_serial != increment:
|
||||
data['next'] = next_serial
|
||||
|
||||
return Response(data)
|
||||
|
||||
|
Reference in New Issue
Block a user