Skip to content

Commit

Permalink
fix: disable overwrite_salary_structure_amount for leave encashment's…
Browse files Browse the repository at this point in the history
… additional salary component
  • Loading branch information
AyshaHakeem committed Jan 31, 2025
1 parent c141c7d commit 4065211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hrms/hr/doctype/leave_encashment/leave_encashment.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def on_submit(self):
if not earning_component:
frappe.throw(_("Please set Earning Component for Leave type: {0}.").format(self.leave_type))
additional_salary.salary_component = earning_component
additional_salary.overwrite_salary_structure_amount = 0
additional_salary.payroll_date = self.encashment_date
additional_salary.amount = self.encashment_amount
additional_salary.ref_doctype = self.doctype
Expand Down

0 comments on commit 4065211

Please sign in to comment.