codacy fixes
This commit is contained in:
parent
9505ea93cf
commit
86b81e99e5
@ -25,9 +25,9 @@ frappe.ui.form.on(cur_frm.doctype, {
|
|||||||
if(frm.doctype == "Employee Promotion"){
|
if(frm.doctype == "Employee Promotion"){
|
||||||
table = "promotion_details";
|
table = "promotion_details";
|
||||||
}else if (frm.doctype == "Employee Transfer") {
|
}else if (frm.doctype == "Employee Transfer") {
|
||||||
table = "transfer_details"
|
table = "transfer_details";
|
||||||
}
|
}
|
||||||
if(!table){return};
|
if(!table){return;}
|
||||||
cur_frm.fields_dict[table].grid.wrapper.find('.grid-add-row').hide();
|
cur_frm.fields_dict[table].grid.wrapper.find('.grid-add-row').hide();
|
||||||
cur_frm.fields_dict[table].grid.add_custom_button(__('Add Row'), () => {
|
cur_frm.fields_dict[table].grid.add_custom_button(__('Add Row'), () => {
|
||||||
if(!frm.doc.employee){
|
if(!frm.doc.employee){
|
||||||
|
Loading…
Reference in New Issue
Block a user