diff --git a/yuthon_property/models/property_accounts_receivable.py b/yuthon_property/models/property_accounts_receivable.py index 72ae11952..5d36fe53b 100644 --- a/yuthon_property/models/property_accounts_receivable.py +++ b/yuthon_property/models/property_accounts_receivable.py @@ -90,7 +90,7 @@ class PropertyAccountsReceivable(models.Model): for record in rent_ids: contract = record.contract_id is_ended = False - if record.delivered1 : + if round(record.delivered1, 2) : if record.original_amount == round(record.delivered1, 2) + round(record.discount_amount, 2): record.deposit_state = 'paid' else: