Skip to content

Commit

Permalink
fix(Leave Application): Resolved leave type missing for accurate payr…
Browse files Browse the repository at this point in the history
…oll processing (#1148)

(cherry picked from commit fabfdbe)
  • Loading branch information
Gubbu77 authored and mergify[bot] committed Dec 12, 2023
1 parent ead06ac commit 5f2ade7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hrms/hr/doctype/leave_application/leave_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ def create_or_update_attendance(self, attendance_name, date):
if attendance_name:
# update existing attendance, change absent to on leave
doc = frappe.get_doc("Attendance", attendance_name)
if doc.status != status:
doc.db_set({"status": status, "leave_type": self.leave_type, "leave_application": self.name})
doc.db_set({"status": status, "leave_type": self.leave_type, "leave_application": self.name})
else:
# make new attendance and submit it
doc = frappe.new_doc("Attendance")
Expand Down

0 comments on commit 5f2ade7

Please sign in to comment.