00 Day
00 Hour
00 Min
00 Sec

Leave request

Home Forums HRM Leave request

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #2508
      denniskrijgsman
      Participant

      Dear WP ERP,

      Is it possible that employees can do a leave request by themself?

      I noticed that only a hr manager can fill in the leave request.

      I managed to filter only the Leave>Request menu for an account but than the person can also do a request for other employees.

      Could you please give me an awnser asap?

      With Kind Regards,

      Dennis

    • #2556
      joshua1234511
      Participant

      Login and check if there is an option above the calender on overview take leave

      if not
      you can do some custom code modifications

      For the employee role add in functions-capabilities.php

      case erp_hr_get_employee_role():

      add this line ‘erp_leave_create_request’ => true,

      Deactivate and reactivate the plugin But before that
      Change this lines
      if ( $roles_hr ) {
      foreach ($roles_hr as $key => $role) {
      add_role( $key, $role[‘name’], $role[‘capabilities’] );
      }
      }
      to

      if ( $roles_hr ) {
      foreach ($roles_hr as $key => $role) {
      remove_role($key);
      add_role( $key, $role[‘name’], $role[‘capabilities’] );
      }
      }

      as add role will not modify the role
      in class-install.php file

Viewing 1 reply thread
  • The forum ‘HRM’ is closed to new topics and replies.

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your query

We will reply to you very soon :)