Skip to content

Commit

Permalink
fix(Shift Type): mark Process Attendance After reqd if auto attendanc…
Browse files Browse the repository at this point in the history
…e is enabled (#2526)

- default it to today's date
  • Loading branch information
ruchamahabal authored Dec 18, 2024
1 parent 93f32cd commit 9824c00
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions hrms/hr/doctype/shift_type/shift_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"autoname": "prompt",
"creation": "2018-04-13 16:22:52.954783",
"doctype": "DocType",
"documentation": "https://docs.frappe.io/hr/shift-type",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
Expand All @@ -23,6 +24,7 @@
"working_hours_threshold_for_absent",
"process_attendance_after",
"last_sync_of_checkin",
"auto_update_last_sync",
"grace_period_settings_auto_attendance_section",
"enable_late_entry_marking",
"late_entry_grace_period",
Expand Down Expand Up @@ -137,16 +139,19 @@
"label": "Enable Auto Attendance"
},
{
"default": "Today",
"description": "Attendance will be marked automatically only after this date.",
"fieldname": "process_attendance_after",
"fieldtype": "Date",
"label": "Process Attendance After"
"label": "Process Attendance After",
"mandatory_depends_on": "enable_auto_attendance"
},
{
"description": "Last Known Successful Sync of Employee Checkin. Reset this only if you are sure that all Logs are synced from all the locations. Please don't modify this if you are unsure.",
"fieldname": "last_sync_of_checkin",
"fieldtype": "Datetime",
"label": "Last Sync of Checkin"
"label": "Last Sync of Checkin",
"read_only_depends_on": "auto_update_last_sync"
},
{
"default": "0",
Expand All @@ -173,10 +178,17 @@
"fieldtype": "Select",
"label": "Roster Color",
"options": "Blue\nCyan\nFuchsia\nGreen\nLime\nOrange\nPink\nRed\nViolet\nYellow"
},
{
"default": "0",
"description": "Recommended for a single biometric device / checkins via mobile app",
"fieldname": "auto_update_last_sync",
"fieldtype": "Check",
"label": "Automatically update Last Sync of Checkin"
}
],
"links": [],
"modified": "2024-05-17 15:48:27.191003",
"modified": "2024-12-18 16:48:10.270409",
"modified_by": "Administrator",
"module": "HR",
"name": "Shift Type",
Expand Down

0 comments on commit 9824c00

Please sign in to comment.