mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
fix: include start and end date for contract status (#18866)
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user