Setting company and leave approver automatically on Add Leave Application page

Hi Everyone,

I need some help with automatically setting the company and the leave approver field on the add leave application page based on the selected employee’s company and the department he works for. The employee field is auto-selected (by default) so using add_fetch to fetch company and leave approver won’t get trigger. This user is allowed to see two companies as part of his user permission. Currently system is auto selecting the first company based on the user permission for this user which is not the correct company, therefore I would like the system to set the company field based on his employee record. Also how do I set the leave approver based on his employee record. Please guide.

Kind regards,
Mayur Patel

@mayur_hotmail this probably needs to be fixed in the product. Can you follow up via a GitHub issue?

Done. The issue #4000.