mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Salary Slip: pull details from salary struture. fixes #1719
This commit is contained in:
@@ -33,8 +33,8 @@ class SalarySlip(TransactionBase):
|
|||||||
return struct and struct[0][0] or ''
|
return struct and struct[0][0] or ''
|
||||||
|
|
||||||
def pull_sal_struct(self, struct):
|
def pull_sal_struct(self, struct):
|
||||||
from erpnext.hr.doctype.salary_structure.salary_structure import get_mapped_doc
|
from erpnext.hr.doctype.salary_structure.salary_structure import make_salary_slip
|
||||||
self.update(get_mapped_doc(struct, self))
|
self.update(make_salary_slip(struct, self).as_dict())
|
||||||
|
|
||||||
def pull_emp_details(self):
|
def pull_emp_details(self):
|
||||||
emp = frappe.db.get_value("Employee", self.employee,
|
emp = frappe.db.get_value("Employee", self.employee,
|
||||||
|
|||||||
Reference in New Issue
Block a user