fix(ux): set warehouse for new row

This commit is contained in:
s-aga-r 2023-06-09 12:20:35 +05:30
parent 1f28ca717e
commit b5c5a90f71

View File

@ -210,9 +210,9 @@ frappe.ui.form.on('Serial and Batch Bundle', {
frappe.ui.form.on("Serial and Batch Entry", { frappe.ui.form.on("Serial and Batch Entry", {
ledgers_add(frm, cdt, cdn) { entries_add(frm, cdt, cdn) {
if (frm.doc.warehouse) { if (frm.doc.warehouse) {
locals[cdt][cdn].warehouse = frm.doc.warehouse; frappe.model.set_value(cdt, cdn, 'warehouse', frm.doc.warehouse);
} }
}, },
}) })