From 47f921fe60d61de71ce48e076a947a891eb4a85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Tue, 7 Jul 2026 10:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property/models/property_bank_statements.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property/models/property_bank_statements.py b/yuthon_property/models/property_bank_statements.py index 3f4bae9e2..27ac56a7f 100644 --- a/yuthon_property/models/property_bank_statements.py +++ b/yuthon_property/models/property_bank_statements.py @@ -265,13 +265,13 @@ class ReceivableModifyLine(models.Model): key=lambda l: ( 0 if l.reconciliation_date else 1, l.reconciliation_date or date.max, - l.id, + l.id if isinstance(l.id, int) else 0, ) ) cumsum = 0.0 for line in sorted_lines: - if line.id == rec.id: + if line == rec: remaining = rec.receivable_id.original_amount - cumsum rec.delivered1 = rec.receivable_id.original_amount if remaining <= 0 else remaining break