fix: minor fix

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
(cherry picked from commit 0e7d45b1af)
This commit is contained in:
Nabin Hait
2026-06-16 14:08:15 +05:30
committed by Mergify
parent 5537e41a22
commit d0d75a2ab5

View File

@@ -46,7 +46,8 @@ class TestFinancialRatios(ERPNextTestSuite):
columns, data = execute(self.get_report_filters())
year_key = columns[1]["fieldname"]
ratio_row = next(row for row in data if row.get("ratio") == "Fixed Asset Turnover Ratio")
ratio_row = next((row for row in data if row.get("ratio") == "Fixed Asset Turnover Ratio"), None)
self.assertIsNotNone(ratio_row, "Fixed Asset Turnover Ratio row not found in report output")
# Net Sales / Net Fixed Assets = 20,000 / 10,000 = 2.0
# (the old behaviour divided by total assets, giving 20,000 / 30,000 = 0.667)