fix: code format

This commit is contained in:
iamkhanraheel
2025-06-16 15:49:50 +05:30
parent 58565a9fb1
commit f71a0fa9e1
2 changed files with 9 additions and 9 deletions

View File

@@ -67,9 +67,9 @@ frappe.ui.form.on("Purchase Order", {
}
},
transaction_date(frm){
transaction_date(frm) {
prevent_past_schedule_dates(frm);
frm.set_value('schedule_date', '')
frm.set_value("schedule_date", "");
},
refresh: function (frm) {
@@ -847,9 +847,9 @@ frappe.ui.form.on("Purchase Order", "is_subcontracted", function (frm) {
});
function prevent_past_schedule_dates(frm) {
if (frm.doc.transaction_date){
frm.fields_dict['schedule_date'].datepicker.update({
minDate: new Date(frm.doc.transaction_date)
if (frm.doc.transaction_date) {
frm.fields_dict["schedule_date"].datepicker.update({
minDate: new Date(frm.doc.transaction_date),
});
}
}

View File

@@ -96,7 +96,7 @@ frappe.ui.form.on("Material Request", {
transaction_date(frm) {
prevent_past_schedule_dates(frm);
frm.set_value('schedule_date', '')
frm.set_value('schedule_date', "");
},
set_from_warehouse: function (frm) {
@@ -632,9 +632,9 @@ function set_schedule_date(frm) {
}
function prevent_past_schedule_dates(frm) {
if (frm.doc.transaction_date){
frm.fields_dict['schedule_date'].datepicker.update({
minDate: new Date(frm.doc.transaction_date)
if (frm.doc.transaction_date) {
frm.fields_dict["schedule_date"].datepicker.update({
minDate: new Date(frm.doc.transaction_date),
});
}
}