From 72a68636d0d9f869593c5d38c37ed7372a1f30a2 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, 24 Nov 2025 17:24:35 +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, 3 insertions(+), 3 deletions(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 150e5d012..05bce3f39 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -564,12 +564,12 @@ class PropertyBankStatements(models.Model): ]) if statements: unreconciled[account] = len(statements) - # if unreconciled: - # raise UserError("存在未对账的历史流水,请优先处理:") + if unreconciled: + raise UserError("存在未对账的历史流水,请优先处理:") def button_reconciliation(self): for record in self: - all_vals, total_rent_month, used_type_names = self._get_reconciliation_vals(record, record.contract_ids, is_equity=False) + all_vals, total_rent_month, used_type_names = self._get_reconciliation_vals(record, record.contract_ids) return self._get_context_and_action(record, all_vals, total_rent_month, used_type_names) def put_button(self):