From a2c82b4dc3c09da9923e92c7d62e462b262b24d7 Mon Sep 17 00:00:00 2001 From: Navin-S-R Date: Fri, 14 Nov 2025 14:05:47 +0530 Subject: [PATCH] fix: use dynamic account type to get average ratio balance (cherry picked from commit 9118f08e7b571edb7bc81780806018fdfc85182e) --- erpnext/accounts/report/financial_ratios/financial_ratios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/financial_ratios/financial_ratios.py b/erpnext/accounts/report/financial_ratios/financial_ratios.py index 5084b6c1651..a726043d1d8 100644 --- a/erpnext/accounts/report/financial_ratios/financial_ratios.py +++ b/erpnext/accounts/report/financial_ratios/financial_ratios.py @@ -199,7 +199,7 @@ def add_turnover_ratios(data, years, period_list, filters, total_asset, net_sale avg_data = {} for d in ["Receivable", "Payable", "Stock"]: - avg_data[frappe.scrub(d)] = avg_ratio_balance("Receivable", period_list, precision, filters) + avg_data[frappe.scrub(d)] = avg_ratio_balance(d, period_list, precision, filters) avg_debtors, avg_creditors, avg_stock = ( avg_data.get("receivable"),