!5822 添加功能

Merge pull request !5822 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-10-20 09:16:31 +00:00
committed by Gitee
@@ -641,7 +641,7 @@ class PropertyLeaseContract(models.Model):
for record in self:
now = date.today()
if record.actual_end_time and record.term_start_time:
if now > record.actual_end_time:
if record.actual_end_time > now:
delta = now - record.actual_end_time
if 60<= delta.days < 90:
record.end_comparison = 'blue'