fix: include start and end date for contract status (#18866)

This commit is contained in:
Rohan 2019-09-03 14:16:12 +05:30 committed by Nabin Hait
parent 496f8e966f
commit 7fa3f3fe98

View File

@ -88,7 +88,7 @@ def get_status(start_date, end_date):
end_date = getdate(end_date)
now_date = getdate(nowdate())
return "Active" if start_date < now_date < end_date else "Inactive"
return "Active" if start_date <= now_date <= end_date else "Inactive"
def update_status_for_contracts():