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",