fix: reset location only if there is value in row item location field

This commit is contained in:
Khushi Rawat
2025-02-19 16:02:01 +05:30
parent 8e42764274
commit 7f8d08c8eb

View File

@@ -652,6 +652,9 @@ frappe.ui.form.on("Asset", {
frm.set_value("purchase_amount", data.gross_purchase_amount);
frm.set_value("asset_quantity", data.asset_quantity);
frm.set_value("cost_center", data.cost_center);
if (data.asset_location) {
frm.set_value("location", data.asset_location);
}
if (doctype === "Purchase Receipt") {
frm.set_value("purchase_receipt_item", data.purchase_receipt_item);