mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
fix: possible key error on Financial ratios report
This commit is contained in:
@@ -177,8 +177,8 @@ def add_solvency_ratios(
|
|||||||
return_on_equity_ratio = {"ratio": "Return on Equity Ratio"}
|
return_on_equity_ratio = {"ratio": "Return on Equity Ratio"}
|
||||||
|
|
||||||
for year in years:
|
for year in years:
|
||||||
profit_after_tax = total_income[year] + total_expense[year]
|
profit_after_tax = flt(total_income.get(year)) + flt(total_expense.get(year))
|
||||||
share_holder_fund = total_asset[year] - total_liability[year]
|
share_holder_fund = flt(total_asset.get(year)) - flt(total_liability.get(year))
|
||||||
|
|
||||||
debt_equity_ratio[year] = calculate_ratio(
|
debt_equity_ratio[year] = calculate_ratio(
|
||||||
total_liability.get(year), share_holder_fund, precision
|
total_liability.get(year), share_holder_fund, precision
|
||||||
|
|||||||
Reference in New Issue
Block a user