mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
Merge pull request #50982 from khushi8112/missing-attribute-issue
fix: Missing attribute error
This commit is contained in:
@@ -537,6 +537,7 @@ def modify_depreciation_schedule_for_asset_repairs(asset, notes):
|
|||||||
for repair in asset_repairs:
|
for repair in asset_repairs:
|
||||||
if repair.increase_in_asset_life:
|
if repair.increase_in_asset_life:
|
||||||
asset_repair = frappe.get_doc("Asset Repair", repair.name)
|
asset_repair = frappe.get_doc("Asset Repair", repair.name)
|
||||||
|
asset_repair.asset_doc = asset
|
||||||
asset_repair.modify_depreciation_schedule()
|
asset_repair.modify_depreciation_schedule()
|
||||||
make_new_active_asset_depr_schedules_and_cancel_current_ones(asset, notes)
|
make_new_active_asset_depr_schedules_and_cancel_current_ones(asset, notes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user