mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 07:38:29 +00:00
fix: create GL entries via hooks only for submitted assets
(cherry picked from commit 33690975f6)
This commit is contained in:
@@ -939,7 +939,7 @@ def make_post_gl_entry():
|
|||||||
assets = frappe.db.sql_list(
|
assets = frappe.db.sql_list(
|
||||||
""" select name from `tabAsset`
|
""" select name from `tabAsset`
|
||||||
where asset_category = %s and ifnull(booked_fixed_asset, 0) = 0
|
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()),
|
(asset_category.name, nowdate()),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user