what is the difference between employee attribute and name attribute in employee doctype
NCP
2
First you have to understand the logic on code side.
i ask about employee and name
not employee_name
i hope you understand me question
NCP
4
again check it, i already posted.
as i see they are the same so why we duplicate the data in database?!
NCP
6
You have to debug the code and check the functionality.
I didn’t understand could you explain what you meant this is just a line
self.employee = self.name
assign the value of name attribute to employee attribute
NCP
9
name set in the employee field but also you have to check set_name_by_naming_series(self)
i saw the code
“”“Sets name by the naming_series
property”“”
why the duplicate happen or what is the benefit of both of fields?
NCP
11
As already said, without debugging, it becomes difficult to understand this flow.
i did not get the idea but Question
when i use crud event for validate method
the flow start with autoname method in employee master
but when i use the override validate method
the flow start with autoname method in employee doctype
why?