mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-11 02:45:08 +00:00
Co-authored-by: Vishnu Priya Baskaran <145791817+ervishnucs@users.noreply.github.com> fix: update min date based on transaction_date (#53803)
This commit is contained in:
@@ -63,6 +63,13 @@ frappe.ui.form.on("Sales Order", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
transaction_date(frm) {
|
||||||
|
prevent_past_delivery_dates(frm);
|
||||||
|
frm.set_value("delivery_date", "");
|
||||||
|
frm.doc.items.forEach((d) => {
|
||||||
|
frappe.model.set_value(d.doctype, d.name, "delivery_date", "");
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
frm.fields_dict["items"].grid.update_docfield_property(
|
frm.fields_dict["items"].grid.update_docfield_property(
|
||||||
|
|||||||
Reference in New Issue
Block a user