[fix] patch for the salary structure assignment for old employees

This commit is contained in:
Manas Solanki
2018-05-18 15:46:35 +05:30
parent fa57cdd86d
commit 33c1a38dc8
2 changed files with 7 additions and 2 deletions

View File

@@ -18,6 +18,9 @@ def execute():
s.base = d.base
s.variable = d.variable
s.company = d.company
# to migrate the data of the old employees
s.flags.old_employee = True
s.save()
frappe.db.sql("update `tabSalary Structure` set docstatus=1")