From 7c6f0e44636720df1a0826d9af3590d90c9830a6 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 19 Dec 2025 17:48:50 +0530 Subject: [PATCH] fix: chart and number cards for projects and qc --- .../completed_projects.json | 34 +++++++++++++++++++ .../project_summary/project_summary.json | 8 +++-- .../non_completed_tasks.json | 26 ++++++++++++++ .../open_projects/open_projects.json | 26 ++++++++++++++ .../timesheet_working_hours.json | 26 ++++++++++++++ .../projects/workspace/projects/projects.json | 32 +++++++++++------ .../quality_inspections.json | 34 +++++++++++++++++++ .../workspace/quality/quality.json | 17 +++++++--- erpnext/workspace_sidebar/quality.json | 14 +++++++- 9 files changed, 197 insertions(+), 20 deletions(-) create mode 100644 erpnext/projects/dashboard_chart/completed_projects/completed_projects.json create mode 100644 erpnext/projects/number_card/non_completed_tasks/non_completed_tasks.json create mode 100644 erpnext/projects/number_card/open_projects/open_projects.json create mode 100644 erpnext/projects/number_card/timesheet_working_hours/timesheet_working_hours.json create mode 100644 erpnext/quality_management/dashboard_chart/quality_inspections/quality_inspections.json diff --git a/erpnext/projects/dashboard_chart/completed_projects/completed_projects.json b/erpnext/projects/dashboard_chart/completed_projects/completed_projects.json new file mode 100644 index 00000000000..40b43b97d32 --- /dev/null +++ b/erpnext/projects/dashboard_chart/completed_projects/completed_projects.json @@ -0,0 +1,34 @@ +{ + "based_on": "modified", + "chart_name": "Completed Projects", + "chart_type": "Count", + "creation": "2025-12-19 17:37:22.169122", + "currency": "", + "docstatus": 0, + "doctype": "Dashboard Chart", + "document_type": "Project", + "dynamic_filters_json": "[]", + "filters_json": "[[\"Project\",\"status\",\"=\",\"Completed\"]]", + "group_by_type": "Count", + "idx": 0, + "is_public": 1, + "is_standard": 1, + "last_synced_on": "2025-12-19 17:40:38.831618", + "modified": "2025-12-19 17:43:40.365756", + "modified_by": "Administrator", + "module": "Projects", + "name": "Completed Projects", + "number_of_groups": 0, + "owner": "Administrator", + "parent_document_type": "", + "roles": [], + "show_values_over_chart": 0, + "source": "", + "time_interval": "Monthly", + "timeseries": 1, + "timespan": "Last Year", + "type": "Line", + "use_report_chart": 0, + "value_based_on": "", + "y_axis": [] +} diff --git a/erpnext/projects/dashboard_chart/project_summary/project_summary.json b/erpnext/projects/dashboard_chart/project_summary/project_summary.json index 157ee1b954a..4899eef1895 100644 --- a/erpnext/projects/dashboard_chart/project_summary/project_summary.json +++ b/erpnext/projects/dashboard_chart/project_summary/project_summary.json @@ -10,15 +10,17 @@ "idx": 0, "is_public": 1, "is_standard": 1, - "modified": "2020-07-22 17:16:39.627076", + "modified": "2025-12-19 17:34:18.455054", "modified_by": "Administrator", "module": "Projects", "name": "Project Summary", "number_of_groups": 0, "owner": "Administrator", "report_name": "Project Summary", + "roles": [], + "show_values_over_chart": 0, "timeseries": 0, - "type": "Bar", + "type": "Line", "use_report_chart": 1, "y_axis": [] -} \ No newline at end of file +} diff --git a/erpnext/projects/number_card/non_completed_tasks/non_completed_tasks.json b/erpnext/projects/number_card/non_completed_tasks/non_completed_tasks.json new file mode 100644 index 00000000000..0d98703e644 --- /dev/null +++ b/erpnext/projects/number_card/non_completed_tasks/non_completed_tasks.json @@ -0,0 +1,26 @@ +{ + "aggregate_function_based_on": "", + "creation": "2025-12-19 17:26:42.792411", + "currency": "", + "docstatus": 0, + "doctype": "Number Card", + "document_type": "Task", + "dynamic_filters_json": "[]", + "filters_json": "[[\"Task\",\"status\",\"in\",[\"Open\",\"Working\",\"Overdue\"]]]", + "function": "Count", + "idx": 0, + "is_public": 1, + "is_standard": 1, + "label": "Non Completed Tasks", + "modified": "2025-12-19 17:40:27.345729", + "modified_by": "Administrator", + "module": "Projects", + "name": "Non Completed Tasks", + "owner": "Administrator", + "parent_document_type": "", + "report_function": "Sum", + "show_full_number": 0, + "show_percentage_stats": 1, + "stats_time_interval": "Daily", + "type": "Document Type" +} diff --git a/erpnext/projects/number_card/open_projects/open_projects.json b/erpnext/projects/number_card/open_projects/open_projects.json new file mode 100644 index 00000000000..459e7e5e531 --- /dev/null +++ b/erpnext/projects/number_card/open_projects/open_projects.json @@ -0,0 +1,26 @@ +{ + "aggregate_function_based_on": "", + "creation": "2025-12-19 17:25:21.245911", + "currency": "", + "docstatus": 0, + "doctype": "Number Card", + "document_type": "Project", + "dynamic_filters_json": "[]", + "filters_json": "[[\"Project\",\"status\",\"=\",\"Open\"]]", + "function": "Count", + "idx": 0, + "is_public": 1, + "is_standard": 1, + "label": "Open Projects", + "modified": "2025-12-19 17:26:48.112779", + "modified_by": "Administrator", + "module": "Projects", + "name": "Open Projects", + "owner": "Administrator", + "parent_document_type": "", + "report_function": "Sum", + "show_full_number": 0, + "show_percentage_stats": 1, + "stats_time_interval": "Daily", + "type": "Document Type" +} diff --git a/erpnext/projects/number_card/timesheet_working_hours/timesheet_working_hours.json b/erpnext/projects/number_card/timesheet_working_hours/timesheet_working_hours.json new file mode 100644 index 00000000000..3a9d5d72359 --- /dev/null +++ b/erpnext/projects/number_card/timesheet_working_hours/timesheet_working_hours.json @@ -0,0 +1,26 @@ +{ + "aggregate_function_based_on": "total_hours", + "creation": "2025-12-19 17:27:56.312267", + "currency": "", + "docstatus": 0, + "doctype": "Number Card", + "document_type": "Timesheet", + "dynamic_filters_json": "[]", + "filters_json": "[[\"Timesheet\",\"docstatus\",\"=\",\"1\"],[\"Timesheet\",\"start_date\",\"Timespan\",\"this quarter\"]]", + "function": "Sum", + "idx": 0, + "is_public": 1, + "is_standard": 1, + "label": "Timesheet Working Hours", + "modified": "2025-12-19 17:29:40.117942", + "modified_by": "Administrator", + "module": "Projects", + "name": "Timesheet Working Hours", + "owner": "Administrator", + "parent_document_type": "", + "report_function": "Sum", + "show_full_number": 0, + "show_percentage_stats": 1, + "stats_time_interval": "Weekly", + "type": "Document Type" +} diff --git a/erpnext/projects/workspace/projects/projects.json b/erpnext/projects/workspace/projects/projects.json index 729cec9812b..9e9ec8142d8 100644 --- a/erpnext/projects/workspace/projects/projects.json +++ b/erpnext/projects/workspace/projects/projects.json @@ -1,11 +1,12 @@ { + "app": "erpnext", "charts": [ { - "chart_name": "Project Summary", - "label": "Open Projects" + "chart_name": "Completed Projects", + "label": "Completed Projects" } ], - "content": "[{\"id\":\"VDMms0hapk\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Open Projects\",\"col\":12}},{\"id\":\"7Mbx6I5JUf\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"nyuMo9byw7\",\"type\":\"header\",\"data\":{\"text\":\"Your Shortcuts\",\"col\":12}},{\"id\":\"dILbX_r0ve\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Task\",\"col\":3}},{\"id\":\"JT8ntrqRiJ\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Project\",\"col\":3}},{\"id\":\"RsafDhm1MS\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Timesheet\",\"col\":3}},{\"id\":\"cVJH-gD0CR\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Project Billing Summary\",\"col\":3}},{\"id\":\"DbctrdmAy1\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Dashboard\",\"col\":3}},{\"id\":\"jx5aPK9aXN\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Learn Project Management\",\"col\":3}},{\"id\":\"ncIHWGQQvX\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"oGhjvYjfv-\",\"type\":\"header\",\"data\":{\"text\":\"Reports & Masters\",\"col\":12}},{\"id\":\"TdsgJyG3EI\",\"type\":\"card\",\"data\":{\"card_name\":\"Projects\",\"col\":4}},{\"id\":\"nIc0iyvf1T\",\"type\":\"card\",\"data\":{\"card_name\":\"Time Tracking\",\"col\":4}},{\"id\":\"8G1if4jsQ7\",\"type\":\"card\",\"data\":{\"card_name\":\"Reports\",\"col\":4}},{\"id\":\"o7qTNRXZI8\",\"type\":\"card\",\"data\":{\"card_name\":\"Settings\",\"col\":4}}]", + "content": "[{\"id\":\"7Mbx6I5JUf\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"fVYsju6dB9\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Completed Projects\",\"col\":12}},{\"id\":\"67w8up7H_0\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Open Projects\",\"col\":4}},{\"id\":\"IFEYSadaYc\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Non Completed Tasks\",\"col\":4}},{\"id\":\"VqbqxA0YL1\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Working Hours\",\"col\":4}},{\"id\":\"nyuMo9byw7\",\"type\":\"header\",\"data\":{\"text\":\"Your Shortcuts\",\"col\":12}},{\"id\":\"dILbX_r0ve\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Task\",\"col\":3}},{\"id\":\"JT8ntrqRiJ\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Project\",\"col\":3}},{\"id\":\"RsafDhm1MS\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Timesheet\",\"col\":3}},{\"id\":\"DbctrdmAy1\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Dashboard\",\"col\":3}},{\"id\":\"jx5aPK9aXN\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Learn Project Management\",\"col\":3}},{\"id\":\"oGhjvYjfv-\",\"type\":\"header\",\"data\":{\"text\":\"Reports & Masters\",\"col\":12}},{\"id\":\"TdsgJyG3EI\",\"type\":\"card\",\"data\":{\"card_name\":\"Projects\",\"col\":4}},{\"id\":\"nIc0iyvf1T\",\"type\":\"card\",\"data\":{\"card_name\":\"Time Tracking\",\"col\":4}},{\"id\":\"8G1if4jsQ7\",\"type\":\"card\",\"data\":{\"card_name\":\"Reports\",\"col\":4}},{\"id\":\"o7qTNRXZI8\",\"type\":\"card\",\"data\":{\"card_name\":\"Settings\",\"col\":4}}]", "creation": "2020-03-02 15:46:04.874669", "custom_blocks": [], "docstatus": 0, @@ -192,11 +193,24 @@ "type": "Link" } ], - "modified": "2023-10-10 23:54:33.082108", + "modified": "2025-12-19 17:37:40.905736", "modified_by": "Administrator", "module": "Projects", "name": "Projects", - "number_cards": [], + "number_cards": [ + { + "label": "Working Hours", + "number_card_name": "Timesheet Working Hours" + }, + { + "label": "Open Projects", + "number_card_name": "Open Projects" + }, + { + "label": "Non Completed Tasks", + "number_card_name": "Non Completed Tasks" + } + ], "owner": "Administrator", "parent_page": "", "public": 1, @@ -233,16 +247,12 @@ "link_to": "Timesheet", "type": "DocType" }, - { - "label": "Timesheet Billing Summary", - "link_to": "Timesheet Billing Summary", - "type": "Report" - }, { "label": "Dashboard", "link_to": "Project", "type": "Dashboard" } ], - "title": "Projects" + "title": "Projects", + "type": "Workspace" } diff --git a/erpnext/quality_management/dashboard_chart/quality_inspections/quality_inspections.json b/erpnext/quality_management/dashboard_chart/quality_inspections/quality_inspections.json new file mode 100644 index 00000000000..c44588526ce --- /dev/null +++ b/erpnext/quality_management/dashboard_chart/quality_inspections/quality_inspections.json @@ -0,0 +1,34 @@ +{ + "based_on": "report_date", + "chart_name": "Quality Inspections", + "chart_type": "Count", + "creation": "2025-12-19 17:43:01.230035", + "currency": "", + "docstatus": 0, + "doctype": "Dashboard Chart", + "document_type": "Quality Inspection", + "dynamic_filters_json": "[]", + "filters_json": "[[\"Quality Inspection\",\"docstatus\",\"=\",\"1\"]]", + "group_by_type": "Count", + "idx": 0, + "is_public": 1, + "is_standard": 1, + "last_synced_on": "2025-12-19 17:40:38.831618", + "modified": "2025-12-19 17:45:09.176892", + "modified_by": "Administrator", + "module": "Quality Management", + "name": "Quality Inspections", + "number_of_groups": 0, + "owner": "Administrator", + "parent_document_type": "", + "roles": [], + "show_values_over_chart": 0, + "source": "", + "time_interval": "Monthly", + "timeseries": 1, + "timespan": "Last Year", + "type": "Line", + "use_report_chart": 0, + "value_based_on": "", + "y_axis": [] +} diff --git a/erpnext/quality_management/workspace/quality/quality.json b/erpnext/quality_management/workspace/quality/quality.json index 8183de9595c..8419e6d02f6 100644 --- a/erpnext/quality_management/workspace/quality/quality.json +++ b/erpnext/quality_management/workspace/quality/quality.json @@ -1,6 +1,12 @@ { - "charts": [], - "content": "[{\"type\":\"header\",\"data\":{\"text\":\"Your Shortcuts\",\"col\":12}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Goal\",\"col\":3}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Procedure\",\"col\":3}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Inspection\",\"col\":3}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Review\",\"col\":3}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Action\",\"col\":3}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Non Conformance\",\"col\":3}},{\"type\":\"spacer\",\"data\":{\"col\":12}},{\"type\":\"header\",\"data\":{\"text\":\"Reports & Masters\",\"col\":12}},{\"type\":\"card\",\"data\":{\"card_name\":\"Goal and Procedure\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Feedback\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Meeting\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Review and Action\",\"col\":4}}]", + "app": "erpnext", + "charts": [ + { + "chart_name": "Quality Inspections", + "label": "Quality Inspections" + } + ], + "content": "[{\"id\":\"QfrnBKYYhz\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Quality Inspections\",\"col\":12}},{\"id\":\"yaCSGl0Vyn\",\"type\":\"header\",\"data\":{\"text\":\"Your Shortcuts\",\"col\":12}},{\"id\":\"_rh9MQThVa\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Goal\",\"col\":3}},{\"id\":\"s1ju8t17sU\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Procedure\",\"col\":3}},{\"id\":\"Z8ycNiAVOu\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Inspection\",\"col\":3}},{\"id\":\"1B245_GlCY\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Review\",\"col\":3}},{\"id\":\"mYzC7TntSM\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Quality Action\",\"col\":3}},{\"id\":\"v-D_lwBjef\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Non Conformance\",\"col\":3}},{\"id\":\"F7_TMxR1Ww\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"p9r5Sh0Obh\",\"type\":\"header\",\"data\":{\"text\":\"Reports & Masters\",\"col\":12}},{\"id\":\"_xoM1u7Nt_\",\"type\":\"card\",\"data\":{\"card_name\":\"Goal and Procedure\",\"col\":4}},{\"id\":\"f08WeA5xp6\",\"type\":\"card\",\"data\":{\"card_name\":\"Feedback\",\"col\":4}},{\"id\":\"K01wIxeEDE\",\"type\":\"card\",\"data\":{\"card_name\":\"Meeting\",\"col\":4}},{\"id\":\"3_Up_1FcOP\",\"type\":\"card\",\"data\":{\"card_name\":\"Review and Action\",\"col\":4}}]", "creation": "2020-03-02 15:49:28.632014", "custom_blocks": [], "docstatus": 0, @@ -144,7 +150,7 @@ "type": "Link" } ], - "modified": "2023-05-24 14:47:22.597974", + "modified": "2025-12-19 17:45:45.731930", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality", @@ -204,5 +210,6 @@ "type": "DocType" } ], - "title": "Quality" -} \ No newline at end of file + "title": "Quality", + "type": "Workspace" +} diff --git a/erpnext/workspace_sidebar/quality.json b/erpnext/workspace_sidebar/quality.json index 733a25e2ddf..a0e82770f30 100644 --- a/erpnext/workspace_sidebar/quality.json +++ b/erpnext/workspace_sidebar/quality.json @@ -6,6 +6,18 @@ "header_icon": "quality", "idx": 0, "items": [ + { + "child": 0, + "collapsible": 1, + "icon": "home", + "indent": 0, + "keep_closed": 0, + "label": "Home", + "link_to": "Quality", + "link_type": "Workspace", + "show_arrow": 0, + "type": "Link" + }, { "child": 0, "collapsible": 1, @@ -222,7 +234,7 @@ "type": "Link" } ], - "modified": "2025-11-25 10:46:09.454532", + "modified": "2025-12-19 17:41:55.193229", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality",