fix: leave_allocation variable not being defined (#29086)
This commit is contained in:
parent
56b9ad8303
commit
dbbc8d8aed
@ -56,9 +56,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user