fix: query for salary component in salary structure
fix: query for salary component in salary structure
This commit is contained in:
commit
b8b23663e6
@ -217,8 +217,12 @@ def get_earning_deduction_components(doctype, txt, searchfield, start, page_len,
|
|||||||
select t1.salary_component
|
select t1.salary_component
|
||||||
from `tabSalary Component` t1, `tabSalary Component Account` t2
|
from `tabSalary Component` t1, `tabSalary Component Account` t2
|
||||||
where (t1.name = t2.parent
|
where (t1.name = t2.parent
|
||||||
and t1.type = %s
|
and t1.type = %(type)s
|
||||||
and t2.company = %s)
|
and t2.company = %(company)s)
|
||||||
or (t1.statistical_component = 1)
|
or (t1.type = %(type)s
|
||||||
|
and t1.statistical_component = 1)
|
||||||
order by salary_component
|
order by salary_component
|
||||||
""", (filters['type'], filters['company']))
|
""",{
|
||||||
|
"type": filters['type'],
|
||||||
|
"company": filters['company']
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user