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

This commit is contained in:
Rohan
2019-09-03 14:16:33 +05:30
committed by Nabin Hait
parent fea996303f
commit f800050b71

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():