From 8e31379ecca19da28846ca5290ac07326022539f Mon Sep 17 00:00:00 2001 From: saeedkola Date: Mon, 23 Oct 2023 11:14:06 +0530 Subject: [PATCH] fix: Cash flow mapping fix (#37522) Cash flow mapping fix --- erpnext/accounts/report/cash_flow/custom_cash_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/cash_flow/custom_cash_flow.py b/erpnext/accounts/report/cash_flow/custom_cash_flow.py index b165c88c068a..24e585e07f60 100644 --- a/erpnext/accounts/report/cash_flow/custom_cash_flow.py +++ b/erpnext/accounts/report/cash_flow/custom_cash_flow.py @@ -67,7 +67,7 @@ def setup_mappers(mappers): mapping["finance_costs"] = [] mapping["finance_costs_adjustments"] = [] doc = frappe.get_doc("Cash Flow Mapper", mapping["name"]) - mapping_names = [item.name for item in doc.accounts] + mapping_names = [item.mapping for item in doc.accounts] if not mapping_names: continue