minor fix

This commit is contained in:
Nabin Hait 2018-04-26 16:32:17 +05:30
parent 25ccd1acbb
commit 2f82bce387
2 changed files with 3 additions and 4 deletions

View File

@ -105,10 +105,9 @@ def get_timesheet_based_salary_slip_employee():
and docstatus != 2""")
if sal_struct:
employees = frappe.db.sql("""
select employee from `tabSalary Structure Employee`
where parent IN %(sal_struct)s""", {"sal_struct": sal_struct}, as_dict=True)
select employee from `tabSalary Structure Assignment`
where salary_structure IN %(sal_struct)s""", {"sal_struct": sal_struct}, as_dict=True)
return employees
else:
return []

View File

@ -12,7 +12,7 @@ def get_data():
},
{
'label': _('Payroll'),
'items': ['Salary Structure', 'Salary Slip', 'Timesheet']
'items': ['Salary Slip', 'Timesheet']
},
{
'label': _('Training Events/Results'),