mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 03:58:26 +00:00
[mappers] cleanup, remove dt_map, map_doclist and other such functions
This commit is contained in:
@@ -62,7 +62,8 @@ class DocType(TransactionBase):
|
||||
self.doclist = self.doc.clear_table(self.doclist, 'earning_details')
|
||||
self.doclist = self.doc.clear_table(self.doclist, 'deduction_details')
|
||||
|
||||
get_obj('DocType Mapper', 'Salary Structure-Salary Slip').dt_map('Salary Structure', 'Salary Slip', struct, self.doc, self.doclist, "[['Salary Structure', 'Salary Slip'],['Salary Structure Earning', 'Salary Slip Earning'],['Salary Structure Deduction','Salary Slip Deduction']]")
|
||||
from hr.doctype.salary_structure.salary_structure import make_salary_slip
|
||||
make_salary_slip(struct, self.doclist)
|
||||
|
||||
basic_info = sql("select bank_name, bank_ac_no, esic_card_no, pf_number from `tabEmployee` where name ='%s'" % self.doc.employee)
|
||||
self.doc.bank_name = basic_info[0][0]
|
||||
|
||||
@@ -22,8 +22,6 @@ from webnotes.model.doc import addchild, make_autoname
|
||||
from webnotes import msgprint, _
|
||||
|
||||
sql = webnotes.conn.sql
|
||||
|
||||
|
||||
|
||||
class DocType:
|
||||
def __init__(self,doc,doclist=[]):
|
||||
|
||||
Reference in New Issue
Block a user