Fix codacy
This commit is contained in:
parent
5c6ade4bd8
commit
3fd21d4273
@ -40,7 +40,7 @@ frappe.ui.form.on('Employee Onboarding', {
|
||||
},
|
||||
callback: function(r) {
|
||||
if (r.message) {
|
||||
frm.set_value('boarding_status', r.message)
|
||||
frm.set_value('boarding_status', r.message);
|
||||
}
|
||||
refresh_field("boarding_status");
|
||||
}
|
||||
|
@ -5,7 +5,6 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.utils import flt
|
||||
from erpnext.hr.utils import EmployeeBoardingController
|
||||
from frappe.model.mapper import get_mapped_doc
|
||||
|
||||
|
@ -2,6 +2,6 @@ frappe.listview_settings['Employee Onboarding'] = {
|
||||
add_fields: ["boarding_status", "employee_name", "date_of_joining", "department"],
|
||||
filters:[["boarding_status","=", "Pending"]],
|
||||
get_indicator: function(doc) {
|
||||
return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "status,=," + doc.boarding_status];
|
||||
}
|
||||
};
|
||||
return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "status,=," + doc.boarding_status];
|
||||
}
|
||||
};
|
||||
|
@ -31,7 +31,7 @@ frappe.ui.form.on('Employee Separation', {
|
||||
},
|
||||
callback: function(r) {
|
||||
if (r.message) {
|
||||
frm.set_value('boarding_status', r.message)
|
||||
frm.set_value('boarding_status', r.message);
|
||||
}
|
||||
refresh_field("boarding_status");
|
||||
}
|
||||
|
@ -2,6 +2,6 @@ frappe.listview_settings['Employee Separation'] = {
|
||||
add_fields: ["boarding_status", "employee_name", "date_of_joining", "department"],
|
||||
filters:[["boarding_status","=", "Pending"]],
|
||||
get_indicator: function(doc) {
|
||||
return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "status,=," + doc.boarding_status];
|
||||
}
|
||||
};
|
||||
return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "status,=," + doc.boarding_status];
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user