chore: remove unnecessary comments

(cherry picked from commit 514c3b45d0)
This commit is contained in:
Khushi Rawat
2026-09-15 23:56:20 +05:30
committed by Mergify
parent dfde7d811c
commit 9cf6582b4b

View File

@@ -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");
}
},