mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 02:04:17 +00:00
fix: empty row on new maintenance visit. (#27626)
* fix: empty row on new maintenance visit. * fix: check if rows exist
This commit is contained in:
@@ -27,6 +27,9 @@ frappe.ui.form.on('Maintenance Visit', {
|
||||
if (frm.doc.__islocal) {
|
||||
frm.set_value({mntc_date: frappe.datetime.get_today()});
|
||||
}
|
||||
if (frm.doc.purposes.length && frm.doc.purposes[0].item_name == undefined) {
|
||||
frm.clear_table("purposes");
|
||||
}
|
||||
},
|
||||
customer: function(frm) {
|
||||
erpnext.utils.get_party_details(frm);
|
||||
|
||||
Reference in New Issue
Block a user