mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-24 04:26:38 +00:00
Merge branch 'staging' into develop
This commit is contained in:
@@ -186,6 +186,8 @@ def make_salary_structure_for_timesheet(employee):
|
||||
|
||||
if not frappe.db.get_value("Salary Structure Assignment",
|
||||
{'employee':employee, 'docstatus': 1}):
|
||||
frappe.db.set_value('Employee', employee, 'date_of_joining',
|
||||
add_months(nowdate(), -5))
|
||||
create_salary_structure_assignment(employee, salary_structure.name)
|
||||
|
||||
return salary_structure
|
||||
|
||||
Reference in New Issue
Block a user