fix cash flow save error

This commit is contained in:
余则霖
2026-01-20 23:37:40 +08:00
parent 573606d5cd
commit b429e1886d
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import frappe
patches_loaded = False
__version__ = '1.0.3'
__version__ = '1.0.4'
def load_monkey_patches():

View File

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