fix: Required By date issue (#44326)

This commit is contained in:
rohitwaghchaure
2024-11-25 20:28:56 +05:30
committed by GitHub
parent bf28b2c771
commit e56a98d5ba

View File

@@ -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);