!5478 添加功能

Merge pull request !5478 from 李鹏宇/zhou
This commit is contained in:
李鹏宇
2025-09-29 08:11:50 +00:00
committed by Gitee
@@ -170,6 +170,7 @@ class PropertyBankStatements(models.Model):
total_rent_month = 0
# 应收租金
rent_ids = self.env['property.accounts.receivable'].search([
('contract_id', 'in', record.contract_ids.ids),
('contract_id.lessor_id.referred', '=', self.your_own_unit),
('management_type_id.name', '=', '租金'),
('is_reconciliation', '=', False),
@@ -177,6 +178,7 @@ class PropertyBankStatements(models.Model):
])
# 应收押金
deposit_ids = self.env['property.accounts.receivable'].search([
('contract_id', 'in', record.contract_ids.ids),
('contract_id.lessor_id.referred', '=', self.your_own_unit),
('management_type_id.name', '=', '押金'),
('is_reconciliation', '=', False),
@@ -184,6 +186,7 @@ class PropertyBankStatements(models.Model):
])
# 应收管理费
management_ids = self.env['property.accounts.receivable'].search([
('contract_id', 'in', record.contract_ids.ids),
('contract_id.lessor_id.referred', '=', self.your_own_unit),
('management_type_id.name', '=', '管理费'),
('is_reconciliation', '=', False),
@@ -191,6 +194,7 @@ class PropertyBankStatements(models.Model):
])
# 应收水费
water_ids = self.env['property.accounts.receivable'].search([
('contract_id', 'in', record.contract_ids.ids),
('contract_id.lessor_id.referred', '=', self.your_own_unit),
('management_type_id.name', '=', '水费'),
('is_reconciliation', '=', False),
@@ -198,6 +202,7 @@ class PropertyBankStatements(models.Model):
])
# 应收电费
electricity_ids = self.env['property.accounts.receivable'].search([
('contract_id', 'in', record.contract_ids.ids),
('contract_id.lessor_id.referred', '=', self.your_own_unit),
('management_type_id.name', '=', '电费'),
('is_reconciliation', '=', False),