Browse Source

fix: leave_allocation variable not being defined (#29086)

develop
Vaibhav Chopra 3 years ago
committed by GitHub
parent
commit
dbbc8d8aed
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      erpnext/hr/doctype/leave_policy_assignment/leave_policy_assignment.py

2
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

Loading…
Cancel
Save