Vaibhav Chopra
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
erpnext/hr/doctype/leave_policy_assignment/leave_policy_assignment.py
|
@ -56,9 +56,7 @@ class LeavePolicyAssignment(Document): |
|
|
leave_policy_detail.leave_type, leave_policy_detail.annual_allocation, |
|
|
leave_policy_detail.leave_type, leave_policy_detail.annual_allocation, |
|
|
leave_type_details, date_of_joining |
|
|
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) |
|
|
self.db_set("leaves_allocated", 1) |
|
|
return leave_allocations |
|
|
return leave_allocations |
|
|
|
|
|
|
|
|