mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
fix: show date in the message for already marked attendance
This commit is contained in:
@@ -35,7 +35,8 @@ class Attendance(Document):
|
|||||||
and docstatus != 2
|
and docstatus != 2
|
||||||
""", (self.employee, getdate(self.attendance_date), self.name))
|
""", (self.employee, getdate(self.attendance_date), self.name))
|
||||||
if res:
|
if res:
|
||||||
frappe.throw(_("Attendance for employee {0} is already marked").format(self.employee))
|
frappe.throw(_("Attendance for employee {0} is already marked for the date {1}").format(
|
||||||
|
frappe.bold(self.employee), frappe.bold(self.attendance_date)))
|
||||||
|
|
||||||
def check_leave_record(self):
|
def check_leave_record(self):
|
||||||
leave_record = frappe.db.sql("""
|
leave_record = frappe.db.sql("""
|
||||||
|
|||||||
Reference in New Issue
Block a user