Skip to content

Commit

Permalink
fix: allow Leave Encashment amount to be editable frappe#1275
Browse files Browse the repository at this point in the history
Refer : frappe#1275
  • Loading branch information
ashish-greycube authored Jan 10, 2024
1 parent bce4b02 commit 015b329
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hrms/hr/doctype/leave_encashment/leave_encashment.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def set_leave_balance(self):
self.leave_allocation = allocation.name

def set_encashment_amount(self):
if not self.is_new():
return
if not hasattr(self, "_salary_structure"):
self.set_salary_structure()

Expand Down

0 comments on commit 015b329

Please sign in to comment.