mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 18:24:10 +00:00
merge
This commit is contained in:
@@ -22,8 +22,8 @@ cur_frm.cscript.onload = function(doc,cdt,cdn){
|
||||
}
|
||||
|
||||
cur_frm.cscript.refresh = function(doc,ct,cdn){
|
||||
if(!doc.docstatus) hide_field('Make Maintenance Visit');
|
||||
else if(doc.docstatus && (doc.status == 'Open' || doc.status == 'Work In Progress')) unhide_field('Make Maintenance Visit');
|
||||
if(!doc.docstatus) hide_field('make_maintenance_visit');
|
||||
else if(doc.docstatus && (doc.status == 'Open' || doc.status == 'Work In Progress')) unhide_field('make_maintenance_visit');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user