• Resolved missiomalta

    (@missiomalta)


    Hi,

    I am testing this plugin for the leave module. Just noticed that when an employee apply for leave the HR manager receives all the requests. Is it possible that the applicant will send the request to the corresponding leader of the department?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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.
    Thread Starter missiomalta

    (@missiomalta)

    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.

    Thread Starter missiomalta

    (@missiomalta)

    Thanks a lot.

    Thread Starter missiomalta

    (@missiomalta)

    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?

    Thread Starter missiomalta

    (@missiomalta)

    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.

    Thread Starter missiomalta

    (@missiomalta)

    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.

    Thread Starter missiomalta

    (@missiomalta)

    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 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Leave Email Direction’ is closed to new replies.