Skip to content

Issue in Allocating the Earned Leaves to the newly joined Employees #447

Description

@Rajatha26

Hi Team,

One of our clients has the requirement to allocate Earned Leaves to their Employees. The below points will update the requirement and the issue.

  1. They will allocate earned leaves of 15 days to their employees.
  2. There was a condition in the allocation of earned leave to the newly joined employees. The team will allocate the earned leaves to the employees only after completing the working period of 365 days i.e. 1 year.
  3. This has to be automated in the ERPNext. During the process of automation, they followed the procedure updated in Steps to replicate and found the contrast between Expected and Observed results, which are documented below:

Steps to replicate:

  1. Created a leave type of name Custom Leave, with the settings so as to be applicable after 365 days, enabling Is Carry Forward functionality and Is Earned Leave functionality.
  2. Created a Leave Policy, with the name Custom Leave Policy - 2023, by selecting the Leave Type Custom Leave, with an Annual Allocation of 15 days.
  3. Updated the joining date for the employee as 01-02-2022, for whom the Earned Leaves has to be allocated.

Github Ticket Image 3

  1. Created a Leave Policy Assignment, within the date period, 01-02-2023 and 31-01-2024. After creating the Leave Policy Assignment for the particular employee in the specified date period, the Leave will be allocated to that employee automatically and will be updated in the Leave Allocation screen.

Github Ticket Image - 1

Expectation:

  1. The 1.25 leaves per month has to be updated automatically per month, from 01-02-2023 and has to be displayed in the field New Leaves Allocated. The number has to be multiplied each month.

Observation:

  1. The numbers in the field New Leaves Allocated are getting displayed as 0.00. This indicates that the Earned Leaves are not getting allocated for the Newly Joined Employees who have completed the service period of 365 days.

Github Ticket Image - 2

Note: I am attaching the screenshot images for this issue.

Kindly update on this issue.

Thanks and Regards
Rajatha B
Functional Consultant
Promantia Business Solution Pvt. Ltd.
Bangalore

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions