Hi @missiomalta,
I’ve just added a new filter erp_new_leave_request_notification_recipients to add multiple recipients for the leave request notification. You can find the commit here.
Using this filter you can send email to the department lead and/or to the employee reporting officer.
We’ll release the next version on ww.wp.xz.cn in next week.
Thank you very much,
Edi
-
This reply was modified 9 years, 1 month ago by
Edi Amin.
-
This reply was modified 9 years, 1 month ago by
Edi Amin.
-
This reply was modified 9 years, 1 month ago by
Edi Amin.
Hi Edi Amin,
Thanks for your reply. DO you have an indication when the update is being issued?
Thanks.
Hi @missiomalta, we’ll release the next version next Thursday, that is 11/05/2017
Thank you.
Dear Developer,
I updated to the latest version of WP ERP. I have the director set as HR manager, Head of IT,and an employee. The employee report to the head of it. Unfortunately when applying for leave the request is only sent to the HR manager and not to the head of It.
What am I doing wrong?
Thanks
Hi @missiomalta, did you set HR Manager role to the Head of IT user?
No. If I set Head of IT user as HR he will receive the leave applications of those not in his department. Am I right?
Thanks a lot
Yes, any User/Employee has HR Manager role will receive the notification. If your problem is still not resolved then let me know.
Thank you.
I see. What I actually wanted was that the employee in a specific department will send the leave application to their department leader. Is that possible? If I set all department leaders as HR Managers they will receive all the applications from all departments.
For ex: If I am the leader of the IT dept I don’t want to receive the leave applications from of the Accounts clerk since it is not in my department.
Thanks a lot for your help.
Yes, it is possible, but in that case, you have to use erp_new_leave_request_notification_recipients filter.
Sorry to bother you again,
I’ve been trying to find this filter but no success.
Can you please help how can I apply this filter? Thanks
@missiomalta,
This filter is added in file-
“modules\hrm\includes\emails\class-email-new-leave-request.php” on line 93.
You can learn about “add_filter” from- https://developer.ww.wp.xz.cn/reference/functions/add_filter/
and “apply_filters” from-
https://developer.ww.wp.xz.cn/reference/functions/apply_filters/
Thank you 🙂