From b0820b5fc9c706f61aee174d4be48e985775c8a0 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, 13 Apr 2026 21:03:25 +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/models/property_accounts_receivable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property/models/property_accounts_receivable.py b/yuthon_property/models/property_accounts_receivable.py index 9d87b676e..6ce54a316 100644 --- a/yuthon_property/models/property_accounts_receivable.py +++ b/yuthon_property/models/property_accounts_receivable.py @@ -90,8 +90,8 @@ class PropertyAccountsReceivable(models.Model): for record in rent_ids: contract = record.contract_id is_ended = False - if record.payout_date : - if record.original_amount == record.delivered1: + if record.delivered1 : + if record.original_amount == record.delivered1 + record.discount_amount: record.deposit_state = 'paid' else: record.deposit_state = 'no_paid'