fix(ux): default parent delivery_date or schedule_date

This commit is contained in:
Devin Slauenwhite 2023-12-08 19:57:34 +00:00
parent b5340c5ec0
commit c86deceaba

View File

@ -676,6 +676,7 @@ erpnext.utils.update_child_items = function(opts) {
fieldname: frm.doc.doctype == 'Sales Order' ? "delivery_date" : "schedule_date",
in_list_view: 1,
label: frm.doc.doctype == 'Sales Order' ? __("Delivery Date") : __("Reqd by date"),
default: frm.doc.doctype == 'Sales Order' ? frm.doc.delivery_date : frm.doc.schedule_date,
reqd: 1
})
fields.splice(3, 0, {