Release Notes for v3.7.0 (58 commits)
Features (4)
PR Description: The current Attendance Request does not allow employees to tag specific shifts while marking attendance for a date range, leading to inaccuracies in late entry, early exit, and overtime calculations.
With this update, employees can now tag a specific shift while submitting an Attendance Request, which helps with accurate attendance time calculations.
Example: An employee working from Jan 1 to Jan 5 on the Night Shift can now specify the Night Shift in their request. Previously, the system would default to the shift assigned in the Shift Assignment or Employee master, which might not match the actual shift worked.
Diff: "creation": "2013-05-06 12:13:11.579350", "creation": "2013-05-06 12:13:11.579350", "fieldname": "shift_type", "fieldtype": "Link", "label": "Shift Type", "options": "Shift Type" }, { "depends_on": "shift_type", "fieldname": "include_holidays", "fieldtype": "Check", "label": "Include Holidays" }, { "collapsible": 1, "collapsible_by_default": 1, "depends_on": "shift_type", "fieldname": "shift_details_section", "fieldtype": "Section Break", "label": "Shift Details" }, { "fieldname": "shift_timings_html", "fieldtype": "HTML", "label": "Shift Timings" }, { +from datetime import timedeltaFixes (8)
Shifts and their timings are vital in determining overtime, late entries, early exits, and break deductions.
```
diff --git a/hrms/hr/doctype/attendance_request/attendance_request.json b/hrms/hr/doctype/attendance_request/attendance_request.json
index 7e39f9e12..f1d3e2d66 100644
--- a/hrms/hr/doctype/attendance_request/attendance_request.json
+++ b/hrms/hr/doctype/attendance_request/attendance_request.json
@@ -1,6 +1,6 @@
{
"actions": [],
"doctype": "DocType",
"document_type": "Document",
"engine": "InnoDB",
@@ -184,6 +184,29 @@
"reqd": 1
},
{
"fieldname": "reason",
"fieldtype": "Small Text",
"label": "Reason"
diff --git a/hrms/hr/doctype/attendance_request/attendance_request.py b/hrms/hr/doctype/attendance_request/attendance_request.py
index 36af7a2f7..acb98f6d5 100644
--- a/hrms/hr/doctype/attendance_request/attendance_request.py
+++ b/hrms/hr/doctype/attendance_request/attendance_request.py
@@ -1,11 +1,13 @@
Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
For license information, please see license.txt
+
import frappe
from frappe import _
from frappe.utils import (
add_days,
cint,
date_diff,
get_link_to_form,
getdate,
)
@@ -40,6 +42,15 @@ class AttendanceRequest(Document):
def validate(self):
self.validate_dates()
self.validate_shift_overlap()
+
Contributors
Full diff: v3.6.0...v3.7.0
Tag: v3.7.0
The original content collected in merge requests has been automatically enhanced by Claude 3.7 Sonnet