mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
fix: correct profit after tax calculation by reducing expenses from income
(cherry picked from commit f420371a7e)
This commit is contained in:
@@ -174,7 +174,7 @@ 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 = flt(total_income.get(year)) + flt(total_expense.get(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))
|
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)
|
debt_equity_ratio[year] = calculate_ratio(total_liability.get(year), share_holder_fund, precision)
|
||||||
|
|||||||
Reference in New Issue
Block a user