fix: update child item schedule_date and prevent past dates (backport #53298) (#53346)

Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com>
fix: update child item schedule_date and prevent past dates (#53298)
This commit is contained in:
mergify[bot]
2026-03-12 10:30:15 +05:30
committed by GitHub
parent a857f0b5c2
commit a4d2c34dde
3 changed files with 11 additions and 20 deletions

View File

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