Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions frontend/src/components/CheckInPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,18 @@ const submitLog = (logType) => {
longitude: longitude.value,
},
{
onSuccess() {
onSuccess(data) {
if (!data?.name) {
toast({
title: __("Error"),
text: __("{0} failed!", [actionLabel]),
icon: "alert-circle",
position: "bottom-center",
iconClasses: "text-red-500",
})
return
}

modalController.dismiss()
toast({
title: __("Success"),
Expand All @@ -176,7 +187,7 @@ const submitLog = (logType) => {
})
},
onError(error) {
let messages = error.messages || []
let messages = error.messages?.length ? error.messages : [__("{0} failed!", [actionLabel])]

for (const message of messages) {
toast({
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/appointment_letter/appointment_letter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "HR-APP-LETTER-.#####",
"creation": "2019-12-26 12:35:49.574828",
"default_print_format": "Standard Appointment Letter",
Expand Down Expand Up @@ -86,7 +87,7 @@
}
],
"links": [],
"modified": "2024-03-27 13:06:30.680330",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Appointment Letter",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "field:template_name",
"creation": "2019-12-26 12:20:14.219578",
"doctype": "DocType",
Expand Down Expand Up @@ -40,7 +41,7 @@
}
],
"links": [],
"modified": "2024-03-27 13:06:31.135009",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Appointment Letter Template",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/appraisal/appraisal.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2022-08-26 05:55:37.571091",
"doctype": "DocType",
Expand Down Expand Up @@ -298,7 +299,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2025-09-24 15:40:29.669135",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Appraisal",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/appraisal_cycle/appraisal_cycle.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:cycle_name",
"creation": "2022-08-24 15:05:29.694466",
Expand Down Expand Up @@ -200,7 +201,7 @@
"link_fieldname": "appraisal_cycle"
}
],
"modified": "2024-05-29 18:15:06.443594",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Appraisal Cycle",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/daily_work_summary/daily_work_summary.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"creation": "2016-11-08 04:58:20.001780",
"doctype": "DocType",
"document_type": "Document",
Expand Down Expand Up @@ -36,7 +37,7 @@
],
"in_create": 1,
"links": [],
"modified": "2026-04-16 12:52:47.429304",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Daily Work Summary",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "Prompt",
"creation": "2018-02-12 15:06:18.767239",
"doctype": "DocType",
Expand Down Expand Up @@ -65,7 +66,7 @@
}
],
"links": [],
"modified": "2024-03-27 13:06:49.230881",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Daily Work Summary Group",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:criteria",
"creation": "2023-03-16 13:24:03.253830",
Expand All @@ -22,7 +23,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-03-27 13:09:38.737816",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Feedback Criteria",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/employee_grievance/employee_grievance.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "HR-GRIEV-.YYYY.-.#####",
"creation": "2021-05-11 13:41:51.485295",
"doctype": "DocType",
Expand Down Expand Up @@ -203,7 +204,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2025-11-21 17:25:40.972515",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Grievance",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:health_insurance_name",
"creation": "2017-03-27 14:32:51.628588",
Expand All @@ -21,7 +22,7 @@
}
],
"links": [],
"modified": "2024-03-27 13:09:39.535296",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Health Insurance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
],
"is_submittable": 1,
"links": [],
"modified": "2026-03-24 17:13:19.990319",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Onboarding",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "HR-EMP-ONT-.#####",
"creation": "2018-05-09 05:27:02.393377",
"doctype": "DocType",
Expand Down Expand Up @@ -68,7 +69,7 @@
}
],
"links": [],
"modified": "2026-04-07 17:54:37.020259",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Onboarding Template",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "format:HR-PF-{YYYY}-{#####}",
"creation": "2022-09-01 01:05:44.869523",
Expand Down Expand Up @@ -183,7 +184,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2024-03-27 13:09:40.430183",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Performance Feedback",
Expand Down
2 changes: 1 addition & 1 deletion hrms/hr/doctype/employee_promotion/employee_promotion.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
],
"is_submittable": 1,
"links": [],
"modified": "2026-08-06 13:01:43.187327",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Promotion",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/employee_referral/employee_referral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "format:HR-REF-{####}",
"creation": "2021-03-23 14:54:45.047051",
"doctype": "DocType",
Expand Down Expand Up @@ -204,7 +205,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2025-12-06 14:32:15.005720",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Referral",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
],
"is_submittable": 1,
"links": [],
"modified": "2026-04-16 14:24:20.502402",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Separation",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "HR-EMP-STP-.#####",
"creation": "2018-05-09 06:31:44.498557",
"doctype": "DocType",
Expand Down Expand Up @@ -68,7 +69,7 @@
}
],
"links": [],
"modified": "2026-04-07 18:18:38.087000",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Separation Template",
Expand Down
2 changes: 1 addition & 1 deletion hrms/hr/doctype/employee_skill_map/employee_skill_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}
],
"links": [],
"modified": "2026-04-07 17:56:17.634829",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Skill Map",
Expand Down
2 changes: 1 addition & 1 deletion hrms/hr/doctype/employee_transfer/employee_transfer.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
],
"is_submittable": 1,
"links": [],
"modified": "2024-03-27 13:09:42.664274",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Employee Transfer",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/exit_interview/exit_interview.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "naming_series:",
"creation": "2021-12-05 13:56:36.241690",
Expand Down Expand Up @@ -218,7 +219,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2026-04-16 12:55:29.457937",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Exit Interview",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"table_fieldname": "accounts"
}
],
"modified": "2025-12-10 18:00:46.722706",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Full and Final Statement",
Expand Down
2 changes: 1 addition & 1 deletion hrms/hr/doctype/goal/goal.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"index_web_pages_for_search": 1,
"is_tree": 1,
"links": [],
"modified": "2026-08-06 13:01:43.187327",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Goal",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/grievance_type/grievance_type.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "Prompt",
"creation": "2021-05-11 12:41:50.256071",
Expand All @@ -23,7 +24,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-03-27 13:09:46.513495",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Grievance Type",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2025-08-28 12:59:25.390188",
"doctype": "DocType",
Expand Down Expand Up @@ -107,7 +108,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2026-01-07 16:11:21.856458",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Holiday List Assignment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"in_create": 1,
"index_web_pages_for_search": 0,
"links": [],
"modified": "2026-08-14 10:00:00.000000",
"modified": "2026-09-01 21:42:50.393703",
"modified_by": "Administrator",
"module": "HR",
"name": "HR Telemetry Milestone",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "field:identification_document_type",
"creation": "2018-05-15 07:13:28.620570",
"doctype": "DocType",
Expand All @@ -17,7 +18,7 @@
}
],
"links": [],
"modified": "2024-03-27 13:09:50.249558",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Identification Document Type",
Expand Down
3 changes: 2 additions & 1 deletion hrms/hr/doctype/interview/interview.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_import": 1,
"autoname": "HR-INT-.YYYY.-.####",
"creation": "2021-04-12 15:03:11.524090",
"doctype": "DocType",
Expand Down Expand Up @@ -199,7 +200,7 @@
"link_fieldname": "interview"
}
],
"modified": "2026-02-19 15:40:38.547112",
"modified": "2026-09-01 18:39:51.520758",
"modified_by": "Administrator",
"module": "HR",
"name": "Interview",
Expand Down
Loading
Loading