mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com> fix: update child item schedule_date and prevent past dates (#53298)
This commit is contained in:
@@ -682,3 +682,10 @@ erpnext.buying.get_items_from_product_bundle = function (frm) {
|
||||
|
||||
dialog.show();
|
||||
};
|
||||
erpnext.buying.prevent_past_schedule_dates = function (frm) {
|
||||
if (frm.doc.transaction_date) {
|
||||
frm.fields_dict["schedule_date"].datepicker?.update({
|
||||
minDate: new Date(frm.doc.transaction_date),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user