mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
PEP fix
This commit is contained in:
@ -517,7 +517,7 @@ class StockList(generics.ListCreateAPIView):
|
|||||||
|
|
||||||
# An expiry date was *not* specified - try to infer it!
|
# An expiry date was *not* specified - try to infer it!
|
||||||
if 'expiry_date' not in data and part.default_expiry > 0:
|
if 'expiry_date' not in data and part.default_expiry > 0:
|
||||||
data['expiry_date'] = datetime.now().date() + timedelta(days=part.default_expiry)
|
data['expiry_date'] = datetime.now().date() + timedelta(days=part.default_expiry)
|
||||||
|
|
||||||
# Attempt to extract serial numbers from submitted data
|
# Attempt to extract serial numbers from submitted data
|
||||||
serials = None
|
serials = None
|
||||||
|
Reference in New Issue
Block a user