From 87f881af7dc81d9e7f259fc838ec6e8a45cb2137 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:12:40 +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 | 2 +- .../wizard/property_reconciliation_wizard.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yuthon_property/models/property_accounts_receivable.py b/yuthon_property/models/property_accounts_receivable.py index 6ce54a316..72ae11952 100644 --- a/yuthon_property/models/property_accounts_receivable.py +++ b/yuthon_property/models/property_accounts_receivable.py @@ -91,7 +91,7 @@ class PropertyAccountsReceivable(models.Model): contract = record.contract_id is_ended = False if record.delivered1 : - if record.original_amount == record.delivered1 + record.discount_amount: + if record.original_amount == round(record.delivered1, 2) + round(record.discount_amount, 2): record.deposit_state = 'paid' else: record.deposit_state = 'no_paid' diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 03fdb03ac..2833094ef 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -394,7 +394,7 @@ class PropertyReconciliationWizard(models.Model): final_remark = line.remake if line.collection_type != 'penalty': receivable.delivered1 = receivable.delivered1 + line.amount - if receivable.original_amount == receivable.delivered1 + line.amount + receivable.discount_amount: + if receivable.original_amount == round(receivable.delivered1, 2) + line.amount + round(receivable.discount_amount, 2) : deposit_state = 'paid' else: deposit_state = 'no_paid' @@ -478,7 +478,7 @@ class PropertyReconciliationWizard(models.Model): if receivable_id and source_receivable and not receivable_id.source_receivable_id: receivable_id.write({'source_receivable_id': source_receivable.id}) if receivable_id and line.amount: - if receivable_id.original_amount == receivable_id.delivered1 + line.amount + receivable_id.discount_amount: + if receivable_id.original_amount == round(receivable_id.delivered1, 2) + line.amount + round(receivable_id.discount_amount, 2): deposit_state = 'paid' else: deposit_state = 'no_paid'