From 3053fb656eb5bf7c535128095428d73888a246dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 20 Oct 2025 17:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property_approval/models/property_lease_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 644bdef67..0750c76a2 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -642,7 +642,7 @@ class PropertyLeaseContract(models.Model): now = date.today() if record.actual_end_time and record.term_start_time: if record.actual_end_time > now: - delta = now - record.actual_end_time + delta = record.actual_end_time - now if 60<= delta.days < 90: record.end_comparison = 'blue' elif 30<= delta.days< 60: