From 387f7ca41594196f94c3eedd2a2e7e8a14200bbc Mon Sep 17 00:00:00 2001 From: MariamMabele Date: Mon, 22 Jun 2026 18:11:27 +0300 Subject: [PATCH] refactor(workspace): rebuild Fleet MS workspace and add trips trend chart --- .../trips_per_month/trips_per_month.json | 30 +++ .../workspace/fleet_ms/fleet_ms.json | 237 +++++++++++------- 2 files changed, 179 insertions(+), 88 deletions(-) create mode 100644 vsd_fleet_ms/vsd_fleet_ms/dashboard_chart/trips_per_month/trips_per_month.json diff --git a/vsd_fleet_ms/vsd_fleet_ms/dashboard_chart/trips_per_month/trips_per_month.json b/vsd_fleet_ms/vsd_fleet_ms/dashboard_chart/trips_per_month/trips_per_month.json new file mode 100644 index 0000000..1b9e579 --- /dev/null +++ b/vsd_fleet_ms/vsd_fleet_ms/dashboard_chart/trips_per_month/trips_per_month.json @@ -0,0 +1,30 @@ +{ + "based_on": "date", + "chart_name": "Trips per Month", + "chart_type": "Count", + "color": "#4F46E5", + "creation": "2026-06-22 00:00:00.000000", + "docstatus": 0, + "doctype": "Dashboard Chart", + "document_type": "Trips", + "dynamic_filters_json": "[]", + "filters_json": "[[\"Trips\",\"docstatus\",\"!=\",2,false]]", + "group_by_type": "Count", + "idx": 0, + "is_public": 1, + "is_standard": 1, + "modified": "2026-06-22 00:00:00.000000", + "modified_by": "Administrator", + "module": "VSD Fleet MS", + "name": "Trips per Month", + "number_of_groups": 0, + "owner": "Administrator", + "source": "", + "time_interval": "Monthly", + "timeseries": 1, + "timespan": "Last Year", + "type": "Line", + "use_report_chart": 0, + "value_based_on": "", + "y_axis": [] +} diff --git a/vsd_fleet_ms/vsd_fleet_ms/workspace/fleet_ms/fleet_ms.json b/vsd_fleet_ms/vsd_fleet_ms/workspace/fleet_ms/fleet_ms.json index d92d28f..788d686 100644 --- a/vsd_fleet_ms/vsd_fleet_ms/workspace/fleet_ms/fleet_ms.json +++ b/vsd_fleet_ms/vsd_fleet_ms/workspace/fleet_ms/fleet_ms.json @@ -1,6 +1,11 @@ { - "charts": [], - "content": "[{\"id\":\"jXwnsJvil0\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Active Trucks\",\"col\":4}},{\"id\":\"G8EkHN13E6\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Idle Trucks\",\"col\":3}},{\"id\":\"WQoT9AN7J1\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Completed Trips\",\"col\":4}},{\"id\":\"ClfVgiJBsi\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Active Trips\",\"col\":3}},{\"id\":\"q2QOU-UHg3\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Total Requested Payments\",\"col\":3}},{\"id\":\"zmWWdyEBaN\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Drivers\",\"col\":3}},{\"id\":\"x0AUY7DppD\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Total Fuel Requested\",\"col\":3}},{\"id\":\"D_r2tq24Wk\",\"type\":\"header\",\"data\":{\"text\":\"VSD Fleet\",\"col\":12}},{\"id\":\"eEKQ_vxz6K\",\"type\":\"card\",\"data\":{\"card_name\":\"Masters\",\"col\":4}},{\"id\":\"_FHA1FtdB9\",\"type\":\"card\",\"data\":{\"card_name\":\"Trips\",\"col\":4}},{\"id\":\"tiOnXE60vg\",\"type\":\"card\",\"data\":{\"card_name\":\"Settings\",\"col\":4}},{\"id\":\"fgOY4518ML\",\"type\":\"card\",\"data\":{\"card_name\":\"Transactions\",\"col\":4}},{\"id\":\"RRWILp0x3t\",\"type\":\"card\",\"data\":{\"card_name\":\"Transport Records\",\"col\":4}},{\"id\":\"Fvhi34VUqU\",\"type\":\"card\",\"data\":{\"card_name\":\"Reports\",\"col\":4}}]", + "charts": [ + { + "chart_name": "Trips per Month", + "label": "Trips per Month" + } + ], + "content": "[{\"id\":\"fleet_chart_1\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Trips per Month\",\"col\":12}},{\"id\":\"fleet_space_1\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"fleet_head_1\",\"type\":\"header\",\"data\":{\"text\":\"Quick Access\",\"col\":12}},{\"id\":\"fleet_shortcut_1\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Truck\",\"col\":3}},{\"id\":\"fleet_shortcut_2\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Manifest\",\"col\":3}},{\"id\":\"fleet_shortcut_3\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Trips\",\"col\":3}},{\"id\":\"fleet_shortcut_4\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Cargo Registration\",\"col\":3}},{\"id\":\"fleet_shortcut_5\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Fuel Requests\",\"col\":3}},{\"id\":\"fleet_shortcut_6\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Requested Payment\",\"col\":3}},{\"id\":\"fleet_shortcut_7\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Round Trip\",\"col\":3}},{\"id\":\"fleet_shortcut_8\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Trip Report and Expenses\",\"col\":3}},{\"id\":\"fleet_space_2\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"fleet_head_2\",\"type\":\"header\",\"data\":{\"text\":\"Operations & Analysis\",\"col\":12}},{\"id\":\"fleet_card_1\",\"type\":\"card\",\"data\":{\"card_name\":\"Operations\",\"col\":4}},{\"id\":\"fleet_card_2\",\"type\":\"card\",\"data\":{\"card_name\":\"Trip Setup\",\"col\":4}},{\"id\":\"fleet_card_3\",\"type\":\"card\",\"data\":{\"card_name\":\"Fleet Masters\",\"col\":4}},{\"id\":\"fleet_card_4\",\"type\":\"card\",\"data\":{\"card_name\":\"Compliance & Logs\",\"col\":4}},{\"id\":\"fleet_card_5\",\"type\":\"card\",\"data\":{\"card_name\":\"Reports\",\"col\":4}},{\"id\":\"fleet_card_6\",\"type\":\"card\",\"data\":{\"card_name\":\"Settings\",\"col\":4}}]", "creation": "2023-05-04 18:08:12.460715", "custom_blocks": [], "docstatus": 0, @@ -15,17 +20,17 @@ { "hidden": 0, "is_query_report": 0, - "label": "Masters", - "link_count": 4, + "label": "Operations", + "link_count": 6, "onboard": 0, "type": "Card Break" }, { "hidden": 0, "is_query_report": 0, - "label": "Truck", + "label": "Manifest", "link_count": 0, - "link_to": "Truck", + "link_to": "Manifest", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -33,9 +38,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Trailer", + "label": "Cargo Registration", "link_count": 0, - "link_to": "Trailers", + "link_to": "Cargo Registration", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -43,9 +48,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Driver", + "label": "Trips", "link_count": 0, - "link_to": "Truck Driver", + "link_to": "Trips", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -53,9 +58,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Fuel UOM", + "label": "Round Trip", "link_count": 0, - "link_to": "Fuel UOM", + "link_to": "Round Trip", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -63,17 +68,19 @@ { "hidden": 0, "is_query_report": 0, - "label": "Settings", - "link_count": 1, + "label": "Fuel Requests", + "link_count": 0, + "link_to": "Fuel Requests", + "link_type": "DocType", "onboard": 0, - "type": "Card Break" + "type": "Link" }, { "hidden": 0, "is_query_report": 0, - "label": "Transport Setting", + "label": "Requested Payment", "link_count": 0, - "link_to": "Transport Settings", + "link_to": "Requested Payment", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -81,15 +88,25 @@ { "hidden": 0, "is_query_report": 0, - "label": "Trips", - "link_count": 5, + "label": "Trip Setup", + "link_count": 6, "onboard": 0, "type": "Card Break" }, { "hidden": 0, "is_query_report": 0, - "label": "Trip Location", + "label": "Trip Routes", + "link_count": 0, + "link_to": "Trip Routes", + "link_type": "DocType", + "onboard": 0, + "type": "Link" + }, + { + "hidden": 0, + "is_query_report": 0, + "label": "Trip Locations", "link_count": 0, "link_to": "Trip Locations", "link_type": "DocType", @@ -99,7 +116,7 @@ { "hidden": 0, "is_query_report": 0, - "label": "Trip Location Type", + "label": "Trip Locations Type", "link_count": 0, "link_to": "Trip Locations Type", "link_type": "DocType", @@ -109,9 +126,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Cargo Type", + "label": "Transport Location", "link_count": 0, - "link_to": "Cargo Types", + "link_to": "Transport Location", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -119,9 +136,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Trip Fixed Expense", + "label": "Cargo Types", "link_count": 0, - "link_to": "Fixed Expenses", + "link_to": "Cargo Types", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -129,9 +146,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Truck & Trailer Inspection", + "label": "Fixed Expenses", "link_count": 0, - "link_to": "Truck and Trailer Inspection", + "link_to": "Fixed Expenses", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -139,17 +156,17 @@ { "hidden": 0, "is_query_report": 0, - "label": "Transport Records", - "link_count": 2, + "label": "Fleet Masters", + "link_count": 5, "onboard": 0, "type": "Card Break" }, { "hidden": 0, "is_query_report": 0, - "label": "Manifest", + "label": "Truck", "link_count": 0, - "link_to": "Manifest", + "link_to": "Truck", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -157,9 +174,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Truck Log", + "label": "Truck Type", "link_count": 0, - "link_to": "Truck Log", + "link_to": "Truck Type", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -167,48 +184,47 @@ { "hidden": 0, "is_query_report": 0, - "label": "Reports", - "link_count": 2, + "label": "Trailers", + "link_count": 0, + "link_to": "Trailers", "link_type": "DocType", "onboard": 0, - "type": "Card Break" + "type": "Link" }, { "hidden": 0, "is_query_report": 0, - "label": "Trip Report and Expenses", + "label": "Truck Driver", "link_count": 0, - "link_to": "Trip Report and Expenses", - "link_type": "Report", + "link_to": "Truck Driver", + "link_type": "DocType", "onboard": 0, - "report_ref_doctype": "Trips", "type": "Link" }, { "hidden": 0, - "is_query_report": 1, - "label": "Fuel Expense By Trip", + "is_query_report": 0, + "label": "Fuel UOM", "link_count": 0, - "link_to": "Fuel Expense By Trip", - "link_type": "Report", + "link_to": "Fuel UOM", + "link_type": "DocType", "onboard": 0, "type": "Link" }, { "hidden": 0, "is_query_report": 0, - "label": "Transactions", - "link_count": 7, - "link_type": "DocType", + "label": "Compliance & Logs", + "link_count": 3, "onboard": 0, "type": "Card Break" }, { "hidden": 0, "is_query_report": 0, - "label": "Cargo Registration", + "label": "Truck and Trailer Inspection", "link_count": 0, - "link_to": "Cargo Registration", + "link_to": "Truck and Trailer Inspection", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -216,9 +232,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Vehicle Trips", + "label": "Truck Log", "link_count": 0, - "link_to": "Trips", + "link_to": "Truck Log", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -226,9 +242,9 @@ { "hidden": 0, "is_query_report": 0, - "label": "Fuel Requests", + "label": "Trip Breakdown", "link_count": 0, - "link_to": "Fuel Requests", + "link_to": "Trip Breakdown", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -236,39 +252,56 @@ { "hidden": 0, "is_query_report": 0, - "label": "Requested Payment", + "label": "Reports", + "link_count": 3, + "onboard": 0, + "type": "Card Break" + }, + { + "hidden": 0, + "is_query_report": 0, + "label": "Trip Report and Expenses", "link_count": 0, - "link_to": "Requested Payment", - "link_type": "DocType", + "link_to": "Trip Report and Expenses", + "link_type": "Report", "onboard": 0, + "report_ref_doctype": "Trips", "type": "Link" }, { "hidden": 0, - "is_query_report": 0, - "label": "Round Trip Details", + "is_query_report": 1, + "label": "Fuel Expense By Trip", "link_count": 0, - "link_to": "Round Trip", - "link_type": "DocType", + "link_to": "Fuel Expense By Trip", + "link_type": "Report", "onboard": 0, "type": "Link" }, { "hidden": 0, "is_query_report": 0, - "label": "Trip Breakdown", + "label": "Trips Report", "link_count": 0, - "link_to": "Trip Breakdown", - "link_type": "DocType", + "link_to": "Trips Report", + "link_type": "Report", "onboard": 0, "type": "Link" }, { "hidden": 0, "is_query_report": 0, - "label": "Fixed Expenses", + "label": "Settings", "link_count": 0, - "link_to": "Fixed Expenses", + "onboard": 0, + "type": "Card Break" + }, + { + "hidden": 0, + "is_query_report": 0, + "label": "Transport Settings", + "link_count": 0, + "link_to": "Transport Settings", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -278,42 +311,70 @@ "modified_by": "Administrator", "module": "VSD Fleet MS", "name": "Fleet MS", - "number_cards": [ + "number_cards": [], + "owner": "arnold@vvsdtz.com", + "parent_page": "", + "public": 1, + "quick_lists": [], + "roles": [], + "sequence_id": 1.0, + "shortcuts": [ { - "label": "Active Trucks", - "number_card_name": "Active Trucks" + "color": "Blue", + "doc_view": "List", + "label": "Truck", + "link_to": "Truck", + "type": "DocType" + }, + { + "color": "Blue", + "doc_view": "List", + "label": "Manifest", + "link_to": "Manifest", + "type": "DocType" }, { - "label": "Completed Trips", - "number_card_name": "Completed Trips" + "color": "Blue", + "doc_view": "List", + "label": "Trips", + "link_to": "Trips", + "type": "DocType" }, { - "label": "Idle Trucks", - "number_card_name": "Idle Trucks" + "color": "Blue", + "doc_view": "List", + "label": "Cargo Registration", + "link_to": "Cargo Registration", + "type": "DocType" }, { - "label": "Active Trips", - "number_card_name": "Trucks with Pending Trips" + "color": "Orange", + "doc_view": "List", + "label": "Requested Payment", + "link_to": "Requested Payment", + "type": "DocType" }, { - "label": "Total Requested Payments", - "number_card_name": "Total Requested Payments" + "color": "Orange", + "doc_view": "List", + "label": "Round Trip", + "link_to": "Round Trip", + "type": "DocType" }, { - "label": "Drivers", - "number_card_name": "Active Drivers" + "color": "Green", + "doc_view": "List", + "label": "Trip Report and Expenses", + "link_to": "Trip Report and Expenses", + "type": "Report" }, { - "label": "Total Fuel Requested", - "number_card_name": "Total Fuel Requested" + "color": "Blue", + "doc_view": "List", + "label": "Fuel Requests", + "link_to": "Fuel Requests", + "type": "DocType" } ], - "owner": "arnold@vvsdtz.com", - "parent_page": "", - "public": 1, - "quick_lists": [], - "roles": [], - "sequence_id": 1.0, - "shortcuts": [], "title": "Fleet MS" -} \ No newline at end of file +}