fix: update To Date in Employee Work History (#31811)

This commit is contained in:
Rucha Mahabal
2022-08-09 18:19:09 +05:30
committed by GitHub
parent 3c8c5d01fb
commit 0057c10a7d
3 changed files with 19 additions and 1 deletions

View File

@@ -224,6 +224,7 @@ def delete_employee_work_history(details, employee, date):
filters["from_date"] = date
if filters:
frappe.db.delete("Employee Internal Work History", filters)
employee.reload()
@frappe.whitelist()