fix: Maintenence Visit -Purpose (item ) tables is not visible on submitted or saved entries (#28792)
This commit is contained in:
parent
5983ddf65b
commit
90b98440e2
@ -43,14 +43,11 @@ frappe.ui.form.on('Maintenance Visit', {
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
frm.clear_table("purposes");
|
||||
}
|
||||
|
||||
if (!frm.doc.status) {
|
||||
frm.set_value({ status: 'Draft' });
|
||||
}
|
||||
if (frm.doc.__islocal) {
|
||||
frm.clear_table("purposes");
|
||||
frm.set_value({ mntc_date: frappe.datetime.get_today() });
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user