mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
fix: Required By date issue (#44326)
This commit is contained in:
@@ -44,6 +44,14 @@ frappe.ui.form.on("Material Request", {
|
||||
});
|
||||
},
|
||||
|
||||
schedule_date(frm) {
|
||||
if (frm.doc.schedule_date) {
|
||||
frm.doc.items.forEach((d) => {
|
||||
frappe.model.set_value(d.doctype, d.name, "schedule_date", frm.doc.schedule_date);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
onload: function (frm) {
|
||||
// add item, if previous view was item
|
||||
erpnext.utils.add_item(frm);
|
||||
|
||||
Reference in New Issue
Block a user