Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave Balance wrongly calculated if expired leave is negative (we allow negative balance leave application) #2563

Open
1 task done
vaimdev opened this issue Jan 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@vaimdev
Copy link

vaimdev commented Jan 1, 2025

Information about bug

  1. We allow employee to apply leave even their leave balance is below 0 (some emergency)
  2. We expire the leave after March of every year
  3. Leave balance report show wrong data

Look at the expired leave column and leave balance .
Expired Leave(s) - the value of negative because those employee has approved leave when balance negative. These shouldn't be considered as expired leave, expired leave should be still 0 and the balance computation is wrong after minus the negative value of expired leave.

image

Module

HR

Version

ERPNext: v15.6.0 (version-15)

Frappe Framework: v15.5.0 (version-15)

Frappe HR: v15.5.0 (version-15)

Payments: v0.0.1 (version-15)

Wiki: v2.0.0 (master)

Installation method

easy-install

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vaimdev vaimdev added the bug Something isn't working label Jan 1, 2025
@ruchamahabal
Copy link
Member

Try upgrading to the latest v15 version and check: https://github.com/frappe/hrms/releases/tag/v15.37.1.
There have been some changes since

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants