mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
codacy fixes
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user