mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 15:25:19 +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) {
|
if (frm.doc.__islocal) {
|
||||||
frm.set_value({mntc_date: frappe.datetime.get_today()});
|
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) {
|
customer: function(frm) {
|
||||||
erpnext.utils.get_party_details(frm);
|
erpnext.utils.get_party_details(frm);
|
||||||
|
|||||||
Reference in New Issue
Block a user