mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 06:01:46 +00:00
Merge pull request #57638 from frappe/mergify/bp/version-16-hotfix/pr-57606
fix: guard scio row lookup in stock entry items_add (backport #57606)
This commit is contained in:
@@ -998,7 +998,10 @@ frappe.ui.form.on("Stock Entry Detail", {
|
||||
}
|
||||
|
||||
if (frm.doc.purpose === "Receive from Customer") {
|
||||
item.t_warehouse = frm.doc.items.find((item) => item.scio_detail).t_warehouse;
|
||||
const scio_row = frm.doc.items.find((row) => row.scio_detail);
|
||||
if (scio_row) {
|
||||
item.t_warehouse = scio_row.t_warehouse;
|
||||
}
|
||||
}
|
||||
},
|
||||
set_basic_rate_manually(frm, cdt, cdn) {
|
||||
|
||||
Reference in New Issue
Block a user