mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 02:55:20 +00:00
chore: remove unnecessary comments
(cherry picked from commit 514c3b45d0)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user