添加功能

This commit is contained in:
李鹏宇
2026-03-31 11:53:25 +08:00
parent 32da83aaf4
commit efdc3d6fac
@@ -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):