mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
merge satement
This commit is contained in:
parent
1ff6988ffd
commit
306725ef92
@ -516,9 +516,7 @@ class StockList(generics.ListCreateAPIView):
|
||||
data['location'] = location.pk
|
||||
|
||||
# An expiry date was *not* specified - try to infer it!
|
||||
if 'expiry_date' not in data:
|
||||
|
||||
if 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)
|
||||
|
||||
# Attempt to extract serial numbers from submitted data
|
||||
|
Loading…
Reference in New Issue
Block a user