mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
minor fix
This commit is contained in:
@@ -105,10 +105,9 @@ def get_timesheet_based_salary_slip_employee():
|
|||||||
and docstatus != 2""")
|
and docstatus != 2""")
|
||||||
if sal_struct:
|
if sal_struct:
|
||||||
employees = frappe.db.sql("""
|
employees = frappe.db.sql("""
|
||||||
select employee from `tabSalary Structure Employee`
|
select employee from `tabSalary Structure Assignment`
|
||||||
where parent IN %(sal_struct)s""", {"sal_struct": sal_struct}, as_dict=True)
|
where salary_structure IN %(sal_struct)s""", {"sal_struct": sal_struct}, as_dict=True)
|
||||||
return employees
|
return employees
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ def get_data():
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': _('Payroll'),
|
'label': _('Payroll'),
|
||||||
'items': ['Salary Structure', 'Salary Slip', 'Timesheet']
|
'items': ['Salary Slip', 'Timesheet']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': _('Training Events/Results'),
|
'label': _('Training Events/Results'),
|
||||||
|
|||||||
Reference in New Issue
Block a user