Skip to content

Commit

Permalink
[Add]: reports & Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nihantra committed Jul 18, 2022
1 parent d525174 commit fb248cb
Show file tree
Hide file tree
Showing 7 changed files with 378 additions and 127 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"chart_name": "Measurement Analysis",
"chart_type": "Report",
"creation": "2022-07-15 10:47:43.162931",
"custom_options": "",
"docstatus": 0,
"doctype": "Dashboard Chart",
"dynamic_filters_json": "{\"from_date\":\"frappe.datetime.add_months(frappe.datetime.get_today(), -1)\",\"to_date\":\"frappe.datetime.get_today()\",\"group_by\":\"1\"}",
"filters_json": "{\"from_date\":\"2022-06-15\",\"to_date\":\"2022-07-15\"}",
"group_by_type": "Count",
"idx": 0,
"is_public": 1,
"is_standard": 1,
"modified": "2022-07-15 10:55:21.980336",
"modified_by": "Administrator",
"module": "GYM Management",
"name": "Measurement Analysis",
"number_of_groups": 0,
"owner": "Administrator",
"report_name": "Measurement Analysis",
"time_interval": "Yearly",
"timeseries": 0,
"timespan": "Last Year",
"type": "Bar",
"use_report_chart": 0,
"x_field": "customer",
"y_axis": [
{
"color": "#4463F0",
"y_field": "weight"
},
{
"color": "#ED6396",
"y_field": "height"
},
{
"color": "#CB2929",
"y_field": "bmi"
},
{
"color": "#761ACB",
"y_field": "bmr"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"chart_name": "Measurement Analysis for BMI & BMR",
"chart_type": "Report",
"creation": "2022-07-14 18:02:00.364978",
"custom_options": "{\"x_field\": \"customer\", \"chart_type\": \"Bar\", \"y_axis_fields\": [{\"idx\": 1, \"__islocal\": true, \"name\": \"row 1\", \"y_field\": \"bmi\", \"color\": \"#29CD42\"}, {\"idx\": 2, \"__islocal\": true, \"name\": \"row 2\", \"y_field\": \"bmr\", \"color\": \"#ED6396\"}], \"y_fields\": [\"bmi\", \"bmr\"], \"colors\": [\"#29CD42\", \"#ED6396\"]}",
"docstatus": 0,
"doctype": "Dashboard Chart",
"dynamic_filters_json": "{\"group_by\":\"1\",\"from_date\":\"frappe.datetime.add_months(frappe.datetime.get_today(), -1)\",\"to_date\":\"frappe.datetime.nowdate()\"}",
"filters_json": "{}",
"group_by_type": "Count",
"idx": 0,
"is_public": 1,
"is_standard": 1,
"modified": "2022-07-15 10:43:24.459685",
"modified_by": "Administrator",
"module": "GYM Management",
"name": "Measurement Analysis for BMI & BMR",
"number_of_groups": 0,
"owner": "Administrator",
"report_name": "Measurement Analysis",
"time_interval": "Yearly",
"timeseries": 0,
"timespan": "Last Year",
"type": "Bar",
"use_report_chart": 0,
"x_field": "customer",
"y_axis": [
{
"color": "#29CD42",
"y_field": "bmi"
},
{
"color": "#ED6396",
"y_field": "bmr"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"chart_name": "Measurement Analysis for Weight & Height",
"chart_type": "Report",
"creation": "2022-07-14 17:44:32.910311",
"custom_options": "{\"x_field\": \"customer\", \"chart_type\": \"Bar\", \"y_axis_fields\": [{\"idx\": 1, \"__islocal\": true, \"name\": \"row 1\", \"y_field\": \"weight\", \"color\": \"#EC864B\"}, {\"idx\": 2, \"__islocal\": true, \"name\": \"row 2\", \"y_field\": \"height\", \"color\": \"#4F9DD9\"}], \"y_fields\": [\"weight\", \"height\"], \"colors\": [\"#EC864B\", \"#4F9DD9\"]}",
"docstatus": 0,
"doctype": "Dashboard Chart",
"dynamic_filters_json": "{\"group_by\":\"1\",\"from_date\":\"frappe.datetime.add_months(frappe.datetime.get_today(), -1)\",\"to_date\":\"frappe.datetime.get_today()\"}",
"filters_json": "{}",
"group_by_type": "Count",
"idx": 0,
"is_public": 1,
"is_standard": 1,
"modified": "2022-07-15 10:44:06.612196",
"modified_by": "Administrator",
"module": "GYM Management",
"name": "Measurement Analysis for Weight & Height",
"number_of_groups": 0,
"owner": "Administrator",
"report_name": "Measurement Analysis",
"time_interval": "Yearly",
"timeseries": 0,
"timespan": "Last Year",
"type": "Bar",
"use_report_chart": 0,
"x_field": "customer",
"y_axis": [
{
"color": "#EC864B",
"y_field": "weight"
},
{
"color": "#4F9DD9",
"y_field": "height"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"cards": [],
"charts": [
{
"chart": "Measurement Analysis",
"width": "Full"
},
{
"chart": "Measurement Analysis for Weight & Height",
"width": "Full"
},
{
"chart": "Measurement Analysis for BMI & BMR",
"width": "Full"
}
],
"creation": "2022-07-14 17:49:55.346866",
"dashboard_name": "Gym Management",
"docstatus": 0,
"doctype": "Dashboard",
"idx": 0,
"is_default": 0,
"is_standard": 1,
"modified": "2022-07-15 10:51:38.920030",
"modified_by": "Administrator",
"module": "GYM Management",
"name": "Gym Management",
"owner": "Administrator"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ frappe.query_reports["Measurement Analysis"] = {
"fieldtype": "Date",
"reqd": 1,
"default": frappe.datetime.get_today()
},
{
"fieldname":"group_by",
"label": __("Group By Member with Average"),
"fieldtype": "Check",
"width": 100
}
],
onload: function(report) {
Expand Down
Loading

0 comments on commit fb248cb

Please sign in to comment.