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(),