From af52f0e71fa992f89b55795eb14f12e125e56720 Mon Sep 17 00:00:00 2001 From: Khushi Rawat <142375893+khushi8112@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:49:01 +0530 Subject: [PATCH] chore: resolved failing check --- .../asset_depreciations_and_balances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2d80808a7e6e..b288e8e5ac73 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 @@ -307,7 +307,6 @@ def get_assets_for_grouped_by_category(filters): ) -# nosemgrep def get_assets_for_grouped_by_asset(filters): condition = "" if filters.get("asset"): @@ -317,6 +316,7 @@ def get_assets_for_grouped_by_asset(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.name as asset,