chore: fix linter

(cherry picked from commit 31bda37970)
This commit is contained in:
Saurabh
2023-04-26 15:44:34 +05:30
committed by Mergify
parent cef7126a35
commit fc42e026ab

View File

@@ -12,6 +12,7 @@ salary_slip = frappe.qb.DocType("Salary Slip")
salary_detail = frappe.qb.DocType("Salary Detail")
salary_component = frappe.qb.DocType("Salary Component")
def execute(filters=None):
if not filters:
filters = {}
@@ -260,6 +261,7 @@ def get_salary_components(salary_slips):
.distinct()
).run(as_list=True)
def get_salary_component_type(salary_component):
return frappe.db.get_value("Salary Component", salary_component, "type", cache=True)