fix: error while loading Financial Ratios report (#37613)
diff --git a/erpnext/accounts/report/financial_ratios/financial_ratios.py b/erpnext/accounts/report/financial_ratios/financial_ratios.py
index 57421eb..47b4fd0 100644
--- a/erpnext/accounts/report/financial_ratios/financial_ratios.py
+++ b/erpnext/accounts/report/financial_ratios/financial_ratios.py
@@ -177,8 +177,8 @@
return_on_equity_ratio = {"ratio": "Return on Equity Ratio"}
for year in years:
- profit_after_tax = total_income[year] + total_expense[year]
- share_holder_fund = total_asset[year] - total_liability[year]
+ profit_after_tax = flt(total_income.get(year)) + flt(total_expense.get(year))
+ share_holder_fund = flt(total_asset.get(year)) - flt(total_liability.get(year))
debt_equity_ratio[year] = calculate_ratio(
total_liability.get(year), share_holder_fund, precision