From 9cf6582b4b0877ba6c6afa6ed572cf4b858469ab Mon Sep 17 00:00:00 2001 From: Khushi Rawat <142375893+khushi8112@users.noreply.github.com> Date: Tue, 15 Sep 2026 23:56:20 +0530 Subject: [PATCH] chore: remove unnecessary comments (cherry picked from commit 514c3b45d0ef1646143a75d7870ae0bb0f239557) --- erpnext/assets/doctype/asset/asset.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/assets/doctype/asset/asset.js b/erpnext/assets/doctype/asset/asset.js index f0db3e9ca5d..02e66682f10 100644 --- a/erpnext/assets/doctype/asset/asset.js +++ b/erpnext/assets/doctype/asset/asset.js @@ -546,9 +546,6 @@ frappe.ui.form.on("Asset", { }, set_finance_book: function (frm) { - // Snapshot the fields this request is based on, so a stale response from an - // earlier, still-in-flight call (e.g. from rapid successive amount edits) - // can't overwrite Finance Books with values computed from an old amount. let item_code = frm.doc.item_code; let net_purchase_amount = frm.doc.net_purchase_amount; @@ -767,8 +764,6 @@ frappe.ui.form.on("Asset", { frm.events.set_depreciation_rate(frm, d); }); } else if (frm.doc.item_code && frm.doc.calculate_depreciation && frm.doc.net_purchase_amount) { - // "Calculate Depreciation" (or the Item) was set before an amount existed, so the - // finance books table was left empty -- build it now that there's an amount to base it on. frm.trigger("set_finance_book"); } },