From 23bfdd16c2e5248e043a3f0fe428bb6b49912408 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, 23 Sep 2025 17:47:20 +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
---
.../views/inherit_yuthon_property_views.xml | 2 +-
.../wizard/property_reconciliation_wizard.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/yuthon_property_approval/views/inherit_yuthon_property_views.xml b/yuthon_property_approval/views/inherit_yuthon_property_views.xml
index 2b827e124..2a9c2787f 100644
--- a/yuthon_property_approval/views/inherit_yuthon_property_views.xml
+++ b/yuthon_property_approval/views/inherit_yuthon_property_views.xml
@@ -512,7 +512,7 @@
-
+
diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py
index f67c462a6..7adec7791 100644
--- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py
+++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py
@@ -87,6 +87,7 @@ class PropertyReconciliationWizard(models.Model):
last_day_of_last_month = start_time.replace(day=1) - relativedelta(days=1)
contract_receivables = self.env['property.accounts.receivable'].search([
('contract_id', '=', contract_id.id),
+ ('contract_id.lessor_id.name', '=', self.bank_id.your_own_unit),
('due_date', '>=', first_day_of_last_month.strftime('%Y-%m-%d')),
('due_date', '<=', last_day_of_last_month.strftime('%Y-%m-%d')),
('management_type_id.name', '=', '租金')
@@ -385,9 +386,9 @@ class PropertyReconciliationWizard(models.Model):
else:
is_reconciliation = False
if line.collection_type != 'penalty':
+ receivable.delivered1 = receivable.delivered1 + line.amount
receivable.write({
'is_reconciliation': is_reconciliation,
- 'delivered1': line.amount,
'payout_date': rec.actual_date,
'remark': line.remake,
'reconciliation_time': fields.Datetime.now(),