From 30904dcde92d036ceed864b479287fb2bc6d3683 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: Thu, 30 Oct 2025 10:57:28 +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/inherit_yuthon_property.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index ea089b52e..366c0d52b 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -264,12 +264,14 @@ class PropertyBankStatements(models.Model): modify.receivable_id.unlink() if self.receivable_modify_ids: self.receivable_modify_ids.unlink() - self.bank_state = 'not_reconciled' - self.registered = 0 + if self.bank_state != 'registered': self.yes_amount = self.original_amount - self.change_amount else: self.yes_amount = 0 + + self.bank_state = 'not_reconciled' + self.registered = 0 self.reconciliation_time = None self._filter_contracts_based_on_receivables()