From 89e8b37739fc574a64cbd433b9a1fca4f0b6ca50 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: Tue, 25 Nov 2025 18:44:24 +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 --- .../wizard/property_reconciliation_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index f9d65335f..7077432c3 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -450,7 +450,7 @@ class PropertyReconciliationWizard(models.Model): yes_amount = 0 for line in rec.reconciliation_line_ids: # 跳过金额为0的行 - if (round(line.rent or 0, 2) == 0 and line.collection_type != 'penalty') or \ + if (round(line.amount or 0, 2) == 0 and line.collection_type != 'penalty') or \ (line.contract_id and line.contract_id.is_contract): continue first_day = line.due_date.replace(day=1) @@ -466,7 +466,7 @@ class PropertyReconciliationWizard(models.Model): domain.append(('contract_id', '=', line.contract_id.id)) receivable_ids = self.env['property.accounts.receivable'].search(domain) for receivable in receivable_ids: - if line.rent == line.amount: + if round(line.rent or 0, 2) == line.amount: is_reconciliation = True else: is_reconciliation = False