mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
fix: Form dashboard showing wrong balance
This commit is contained in:
@@ -433,6 +433,7 @@ def get_leave_details(employee, date):
|
|||||||
'from_date': ('<=', date),
|
'from_date': ('<=', date),
|
||||||
'to_date': ('>=', date),
|
'to_date': ('>=', date),
|
||||||
'leave_type': allocation.leave_type,
|
'leave_type': allocation.leave_type,
|
||||||
|
'employee': employee
|
||||||
}, 'SUM(total_leaves_allocated)') or 0
|
}, 'SUM(total_leaves_allocated)') or 0
|
||||||
|
|
||||||
remaining_leaves = get_leave_balance_on(employee, d, date, to_date = allocation.to_date,
|
remaining_leaves = get_leave_balance_on(employee, d, date, to_date = allocation.to_date,
|
||||||
|
|||||||
Reference in New Issue
Block a user