mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 15:27:12 +00:00
(cherry picked from commit dbbc8d8aed)
Co-authored-by: Vaibhav Chopra <53619134+sudo-vaibhav@users.noreply.github.com>
This commit is contained in:
@@ -57,9 +57,7 @@ class LeavePolicyAssignment(Document):
|
||||
leave_policy_detail.leave_type, leave_policy_detail.annual_allocation,
|
||||
leave_type_details, date_of_joining
|
||||
)
|
||||
|
||||
leave_allocations[leave_policy_detail.leave_type] = {"name": leave_allocation, "leaves": new_leaves_allocated}
|
||||
|
||||
leave_allocations[leave_policy_detail.leave_type] = {"name": leave_allocation, "leaves": new_leaves_allocated}
|
||||
self.db_set("leaves_allocated", 1)
|
||||
return leave_allocations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user