[minor] update salary structure company if not set
This commit is contained in:
parent
caeb9dc025
commit
b9b36a2062
@ -10,4 +10,5 @@ def execute():
|
||||
salary_employee.base = 0
|
||||
if not ss_doc.company:
|
||||
ss_doc.company = frappe.db.get_value('Employee', salary_employee.employee, 'company')
|
||||
ss_doc.flags.ignore_validate = True
|
||||
ss_doc.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user