fix: Maintenence Visit -Purpose (item ) tables is not visible on submitted or saved entries (#28792)

This commit is contained in:
aaronmenezes 2021-12-08 14:48:19 +05:30 committed by GitHub
parent 5983ddf65b
commit 90b98440e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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