@@ -450,7 +450,7 @@ class PropertyReconciliationWizard(models.Model):
|
||||
yes_amount = 0
|
||||
for line in rec.reconciliation_line_ids:
|
||||
# 跳过金额为0的行
|
||||
if (round(line.rent or 0, 2) == 0 and line.collection_type != 'penalty') or \
|
||||
if (round(line.amount or 0, 2) == 0 and line.collection_type != 'penalty') or \
|
||||
(line.contract_id and line.contract_id.is_contract):
|
||||
continue
|
||||
first_day = line.due_date.replace(day=1)
|
||||
@@ -466,7 +466,7 @@ class PropertyReconciliationWizard(models.Model):
|
||||
domain.append(('contract_id', '=', line.contract_id.id))
|
||||
receivable_ids = self.env['property.accounts.receivable'].search(domain)
|
||||
for receivable in receivable_ids:
|
||||
if line.rent == line.amount:
|
||||
if round(line.rent or 0, 2) == line.amount:
|
||||
is_reconciliation = True
|
||||
else:
|
||||
is_reconciliation = False
|
||||
|
||||
Reference in New Issue
Block a user