diff --git a/erpnext/accounts/report/asset_depreciations_and_balances/asset_depreciations_and_balances.py b/erpnext/accounts/report/asset_depreciations_and_balances/asset_depreciations_and_balances.py index caddaf91f825..2d80808a7e6e 100644 --- a/erpnext/accounts/report/asset_depreciations_and_balances/asset_depreciations_and_balances.py +++ b/erpnext/accounts/report/asset_depreciations_and_balances/asset_depreciations_and_balances.py @@ -238,6 +238,7 @@ def get_assets_for_grouped_by_category(filters): finance_book_filter += " and ifnull(gle.finance_book, '')=%(finance_book)s" condition += " and exists (select 1 from `tabAsset Depreciation Schedule` ads where ads.asset = a.name and ads.finance_book = %(finance_book)s)" + # nosemgrep return frappe.db.sql( f""" SELECT results.asset_category, @@ -306,6 +307,7 @@ def get_assets_for_grouped_by_category(filters): ) +# nosemgrep def get_assets_for_grouped_by_asset(filters): condition = "" if filters.get("asset"):