diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 57384062f..1416cd9f1 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -332,7 +332,8 @@ class PropertyReconciliationWizard(models.Model): ] # 检查是否已有相同记录 existing_record = self.env['property.accounts.receivable'].search(check_domain) - is_reconciliation = line.amount == line.rent + is_reconciliation = line.amount == round(line.rent, 2) + # 用备注的的开始日期和结束日期 date_pattern = r'(\d{4}-\d{2}-\d{2})[至-](\d{4}-\d{2}-\d{2})' date_match = re.search(date_pattern, line.remake or '')