mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 10:20:31 +00:00
chore: patch to correct asset values if je has workflow [v14] (#36915)
chore: patch to correct asset values if je has workflow
This commit is contained in:
@@ -399,14 +399,11 @@ class AssetCapitalization(StockController):
|
||||
def get_gl_entries_for_consumed_asset_items(
|
||||
self, gl_entries, target_account, target_against, precision
|
||||
):
|
||||
self.are_all_asset_items_non_depreciable = True
|
||||
|
||||
# Consumed Assets
|
||||
for item in self.asset_items:
|
||||
asset = frappe.get_doc("Asset", item.asset)
|
||||
|
||||
if asset.calculate_depreciation:
|
||||
self.are_all_asset_items_non_depreciable = False
|
||||
depreciate_asset(asset, self.posting_date)
|
||||
asset.reload()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user