frappe / hrms

Open Source HR and Payroll Software
https://frappe.io/hr
GNU General Public License v3.0
1.39k stars 722 forks source link

Leave Balance Miscalculated #77

Closed KhaledBinAmir closed 1 year ago

KhaledBinAmir commented 2 years ago

Description of the issue

Leave balance showing wrong balance.

Leave ledger entry has two records, (Allocated +10, Leave Application -3), so the balance should be 7. image

Reports, everywhere including in the leave application showing balance 8 image

Leave period is same and only one leave period currenty exists.

Context information (for bug reports)

Output of bench version

erpnext 14.2.1
frappe 14.9.0
frappedesk 0.4.5
hrms 1.0.0
payments 0.0.1
ruchamahabal commented 2 years ago

@hiimkhaled can you share the dates for:

KhaledBinAmir commented 2 years ago

@ruchamahabal Sorry for the late reply.

Leave Application Entry image

Leave Allocation Entry image

Let me know if I can help more on this.

saurabh6790 commented 2 years ago

@hiimkhaled Not able to reproduce locally, are you still facing this issue?