frappe / hrms

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

Leave Balance Miscalculated #77

Closed KhaledBinAmir closed 1 year ago

KhaledBinAmir commented 1 year 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 1 year ago

@hiimkhaled can you share the dates for:

KhaledBinAmir commented 1 year 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 1 year ago

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