Dears
Kindly support as i need to fetch the data after selecting the Party Type as Employee and employee Code in Party and put the Employee Name in New Custom Field called Party Name >
In Journal Entry >
Dears
Kindly support as i need to fetch the data after selecting the Party Type as Employee and employee Code in Party and put the Employee Name in New Custom Field called Party Name >
In Journal Entry >
I believe this is a customized field. You may need to write server script (python) or custom script (javascript) to load the information from relevant doctype based on the party type selected
i believe so , but i face difficult to understand the suitable function to link it
any help ?
Hi
Login with administrator
Go to customize form
Select journal entry account
In the options property of the party name write party.employee_name
Or you can also do this by code on .js file
cur_frm.add_fetch("party", "employee_name", "party_name")
@lokesh thanks
its worked by adding to fetch From ( party.employee_name )
but how can i make it run with employee only , as any other selection give an error .
In that case, you have to do this by code.
On your .js file. Check condition whether party type is employee then use
cur_frm.add_fetch("party", "employee_name", "party_name")
I am a new user, can you explain the solution
solved by
lokesh
In that case, you have to do this by code.
On your .js file. Check condition whether party type is employee then use
cur_frm.add_fetch("party", "employee_name", "party_name")
hi.
can you give the solution for server script?