Skip to content

Commit

Permalink
fix(ux): set warehouse for new row
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Jun 9, 2023
1 parent 1f28ca7 commit b5c5a90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ frappe.ui.form.on('Serial and Batch Bundle', {


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

0 comments on commit b5c5a90

Please sign in to comment.