@@ -1244,7 +1244,7 @@ class PropertyLeaseContract(models.Model):
|
||||
if not actual_start or today < actual_start:
|
||||
# 待执行:实际开始时间未到或未设置
|
||||
contract.contact_state = 'to'
|
||||
elif actual_start and (not actual_end or today > actual_end):
|
||||
elif actual_start and (not actual_end or today < actual_end):
|
||||
# 执行中:已开始且未结束(或结束时间未设置)
|
||||
contract.contact_state = 'ing'
|
||||
elif today == actual_end:
|
||||
|
||||
Reference in New Issue
Block a user