Skip to content

Commit

Permalink
Merge pull request #703 from frappe/version-14-hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Jul 19, 2023
2 parents cb9d5bc + 8b04fd8 commit dd18161
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion hrms/hr/doctype/employee_checkin/employee_checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ def validate(self):

def validate_duplicate_log(self):
doc = frappe.db.exists(
"Employee Checkin", {"employee": self.employee, "time": self.time, "name": ["!=", self.name]}
"Employee Checkin",
{
"employee": self.employee,
"time": self.time,
"name": ("!=", self.name),
"log_type": self.log_type,
},
)
if doc:
doc_link = frappe.get_desk_link("Employee Checkin", doc)
Expand Down
1 change: 0 additions & 1 deletion hrms/public/node_modules

This file was deleted.

0 comments on commit dd18161

Please sign in to comment.