diff --git a/erpnext/assets/doctype/asset/asset.py b/erpnext/assets/doctype/asset/asset.py index 929a60d0e6d..6fef1b21825 100644 --- a/erpnext/assets/doctype/asset/asset.py +++ b/erpnext/assets/doctype/asset/asset.py @@ -939,7 +939,7 @@ def make_post_gl_entry(): assets = frappe.db.sql_list( """ select name from `tabAsset` where asset_category = %s and ifnull(booked_fixed_asset, 0) = 0 - and available_for_use_date = %s""", + and available_for_use_date = %s and docstatus = 1""", (asset_category.name, nowdate()), )