From adb5249257b1b6e39b794df2938c5eab794062fb Mon Sep 17 00:00:00 2001 From: anandbaburajan Date: Tue, 3 Jan 2023 13:03:12 +0530 Subject: [PATCH] chore: fix patch --- .../v15_0/create_asset_depreciation_schedules_from_assets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py b/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py index 1da05346f7..5dc3cdde6f 100644 --- a/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py +++ b/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py @@ -20,11 +20,11 @@ def execute(): asset_depr_schedule_doc.insert() - update_depreciation_schedules(asset.name, asset_depr_schedule_doc.name, fb_row.idx) - if asset.docstatus == 1: asset_depr_schedule_doc.submit() + update_depreciation_schedules(asset.name, asset_depr_schedule_doc.name, fb_row.idx) + def get_details_of_draft_or_submitted_depreciable_assets(): asset = frappe.qb.DocType("Asset")