fix payroll and stock related data

This commit is contained in:
Zlash65
2018-09-26 12:27:09 +05:30
parent 4c07970545
commit 796bffbee1
3 changed files with 27 additions and 14 deletions

View File

@@ -166,12 +166,16 @@ def setup_salary_structure(employees, salary_slip_based_on_timesheet=0):
"idx": 1
})
ss.insert()
ss.submit()
for e in employees:
sa = frappe.new_doc("Salary Structure Assignment")
sa.employee = e.name
sa.salary_structure = ss.name
sa.from_date = "2015-01-01"
sa.base = random.random() * 10000
sa.insert()
sa.submit()
return ss