Skip to content

Incorrect earned leave allocation #123

Description

@JoyceBabu

Information about bug

I am trying to create and allocate ‘Privilege Leave’ for our company. But the allocated leave is incorrect, when using Leave Policy Assignment.

First of all, I tried creating the ‘Privilege Leave’ type, with the following settings

image

Then, I created a Leave Period of 2022 from Jan 1 to Dec 31.

Afterwards, I created a Leave Policy with 12 Privilege Leave allocated per year.

The newly created Leave Policy was then assigned to an employee.

This allocated 48 Privilege Leaves to the employee.

I expected 12 privilege leaves to be allocated, since the employee has been with us for more than 1 year. If I apply the leave policy for a new employee who joined this year, the 24 leaves are allocated.

Leave Policy:
image

Leave Policy Assignment:
image

Leaves Allocated:
image

Module

HR

Version

Frappe Framework
v13.28.0

ERPNext
v13.28.0

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

No response

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