From 86b81e99e54b0ba67b08bda0d8e47f7b756da0a5 Mon Sep 17 00:00:00 2001 From: Ranjith Date: Sat, 5 May 2018 16:49:51 +0530 Subject: [PATCH] codacy fixes --- erpnext/hr/employee_property_update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/hr/employee_property_update.js b/erpnext/hr/employee_property_update.js index 91b6c97048..473916ca42 100644 --- a/erpnext/hr/employee_property_update.js +++ b/erpnext/hr/employee_property_update.js @@ -25,9 +25,9 @@ frappe.ui.form.on(cur_frm.doctype, { if(frm.doctype == "Employee Promotion"){ table = "promotion_details"; }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.add_custom_button(__('Add Row'), () => { if(!frm.doc.employee){