Salary Slip: pull details from salary struture. fixes #1719
diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.py b/erpnext/hr/doctype/salary_slip/salary_slip.py
index 9ae394b..232d6a9 100644
--- a/erpnext/hr/doctype/salary_slip/salary_slip.py
+++ b/erpnext/hr/doctype/salary_slip/salary_slip.py
@@ -33,8 +33,8 @@
return struct and struct[0][0] or ''
def pull_sal_struct(self, struct):
- from erpnext.hr.doctype.salary_structure.salary_structure import get_mapped_doc
- self.update(get_mapped_doc(struct, self))
+ from erpnext.hr.doctype.salary_structure.salary_structure import make_salary_slip
+ self.update(make_salary_slip(struct, self).as_dict())
def pull_emp_details(self):
emp = frappe.db.get_value("Employee", self.employee,