diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 30c0fa634..48126c104 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -578,10 +578,10 @@ class PropertyReconciliationLine(models.Model): debt_str = f',欠{debt_amount}' if debt_amount != 0 else '' if same_month: # 条件1:rent_month≠rent 且 rent_month≠amount 且 amount≠0 → 补交 - if rent_month != rent and rent_month != amount and amount != 0: + if rent_month != rent and rent != amount and amount != 0: line.remake = f'补交{due_date_str}' # 条件2:rent == amount → 补齐 - elif rent == amount and amount != 0: + elif rent_month != rent and rent == amount and amount != 0: line.remake = f'补齐{due_date_str}' continue if (due_month > actual_month and due_year == actual_year) or (due_year > actual_year):