Merge pull request #50260 from khushi8112/gl-entry-only-for-submitted-assets

fix: create GL entries via hooks only for submitted assets
This commit is contained in:
Khushi Rawat
2025-11-03 14:50:38 +05:30
committed by GitHub

View File

@@ -946,7 +946,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()),
)