codacy fixes
This commit is contained in:
parent
0cb2684130
commit
590bf4ce3a
@ -71,13 +71,15 @@ frappe.ui.form.on('Employee Tax Exemption Declaration', {
|
|||||||
method: "calculate_hra_exemption",
|
method: "calculate_hra_exemption",
|
||||||
doc: frm.doc,
|
doc: frm.doc,
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
frm.refresh_fields();
|
if (!r.exc){
|
||||||
|
frm.refresh_fields();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
set_null_value(frm){
|
set_null_value(frm){
|
||||||
let fields = ['salary_structure_hra', 'monthly_house_rent','annual_hra', 'monthly_hra',
|
let fields = ['salary_structure_hra', 'monthly_house_rent','annual_hra', 'monthly_hra',
|
||||||
'total_exemption_amount', 'payroll_period'];
|
'total_exemption_amount', 'payroll_period'];
|
||||||
fields.forEach(function(field) {
|
fields.forEach(function(field) {
|
||||||
frm.set_value(field, '');
|
frm.set_value(field, '');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -6,7 +6,6 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import getdate
|
|
||||||
from erpnext.hr.utils import validate_tax_declaration, calculate_eligible_hra_exemption
|
from erpnext.hr.utils import validate_tax_declaration, calculate_eligible_hra_exemption
|
||||||
|
|
||||||
class EmployeeTaxExemptionDeclaration(Document):
|
class EmployeeTaxExemptionDeclaration(Document):
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import date_diff, flt, getdate, get_first_day, get_last_day
|
from frappe.utils import date_diff, flt
|
||||||
from erpnext.hr.utils import validate_tax_declaration, calculate_eligible_hra_exemption
|
from erpnext.hr.utils import validate_tax_declaration, calculate_eligible_hra_exemption
|
||||||
|
|
||||||
class EmployeeTaxExemptionProofSubmission(Document):
|
class EmployeeTaxExemptionProofSubmission(Document):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user