mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-27 02:28:30 +00:00
[minor] update salary structure company if not set
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user