From 87959a3d2ca3e14c4906cdecbef5ce8134cf4843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Mon, 18 May 2026 17:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=AF=B9=E6=8C=82=E8=B4=A6=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_report/models/bank_statements_report.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yuthon_report/models/bank_statements_report.py b/yuthon_report/models/bank_statements_report.py index 111552ab5..11ed35f9b 100644 --- a/yuthon_report/models/bank_statements_report.py +++ b/yuthon_report/models/bank_statements_report.py @@ -19,6 +19,9 @@ class BankStatementsReport(models.Model): # 过滤 bank_state 为 '挂账' 和 '未对账' domain.append(('bank_state', 'in', ['not_reconciled', 'registered'])) + # 过滤 lending_direction 为 'borrow' (借方) + domain.append(('lending_direction', '=', 'borrow')) + # 公司搜索条件 company_id = params.get('company_id') if company_id: