fix: include start and end date for contract status (#18866)
This commit is contained in:
parent
496f8e966f
commit
7fa3f3fe98
@ -88,7 +88,7 @@ def get_status(start_date, end_date):
|
|||||||
end_date = getdate(end_date)
|
end_date = getdate(end_date)
|
||||||
now_date = getdate(nowdate())
|
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():
|
def update_status_for_contracts():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user