mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +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) {
|
onload: function (frm) {
|
||||||
// add item, if previous view was item
|
// add item, if previous view was item
|
||||||
erpnext.utils.add_item(frm);
|
erpnext.utils.add_item(frm);
|
||||||
|
|||||||
Reference in New Issue
Block a user