From b429e1886dd0778b859a3f87e1f96ff48cec2a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=88=99=E9=9C=96?= <7624863+yuzelin@user.noreply.gitee.com> Date: Tue, 20 Jan 2026 23:37:40 +0800 Subject: [PATCH] fix cash flow save error --- erpnext_china/__init__.py | 2 +- erpnext_china/erpnext_china/doctype/cash_flow/cash_flow.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext_china/__init__.py b/erpnext_china/__init__.py index 6809a09..7a7ef42 100644 --- a/erpnext_china/__init__.py +++ b/erpnext_china/__init__.py @@ -7,7 +7,7 @@ import frappe patches_loaded = False -__version__ = '1.0.3' +__version__ = '1.0.4' def load_monkey_patches(): diff --git a/erpnext_china/erpnext_china/doctype/cash_flow/cash_flow.py b/erpnext_china/erpnext_china/doctype/cash_flow/cash_flow.py index 376422f..484b060 100644 --- a/erpnext_china/erpnext_china/doctype/cash_flow/cash_flow.py +++ b/erpnext_china/erpnext_china/doctype/cash_flow/cash_flow.py @@ -92,7 +92,8 @@ class CashFlow(Document): 'from_date': from_date, 'to_date': to_date }) - opening_balances = get_rootwise_opening_balances(filters, "Balance Sheet") + # ignore_is_opening 会计设置默认勾选,可提升取数性能 + opening_balances = get_rootwise_opening_balances(filters, "Balance Sheet", 1) #filters.from_date = year_start_date #yearly_opening_balances = get_rootwise_opening_balances(filters, "Balance Sheet") cash_accounts = frappe.get_all("Account",