fix: chart not visible for First Response Time reports (#26032)
This commit is contained in:
parent
5f5bbf622a
commit
7dbb032468
@ -22,10 +22,10 @@ frappe.query_reports["First Response Time for Opportunity"] = {
|
|||||||
get_chart_data: function (_columns, result) {
|
get_chart_data: function (_columns, result) {
|
||||||
return {
|
return {
|
||||||
data: {
|
data: {
|
||||||
labels: result.map(d => d[0]),
|
labels: result.map(d => d.creation_date),
|
||||||
datasets: [{
|
datasets: [{
|
||||||
name: "First Response Time",
|
name: "First Response Time",
|
||||||
values: result.map(d => d[1])
|
values: result.map(d => d.first_response_time)
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
type: "line",
|
type: "line",
|
||||||
@ -35,8 +35,7 @@ frappe.query_reports["First Response Time for Opportunity"] = {
|
|||||||
hide_days: 0,
|
hide_days: 0,
|
||||||
hide_seconds: 0
|
hide_seconds: 0
|
||||||
};
|
};
|
||||||
value = frappe.utils.get_formatted_duration(d, duration_options);
|
return frappe.utils.get_formatted_duration(d, duration_options);
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,10 +22,10 @@ frappe.query_reports["First Response Time for Issues"] = {
|
|||||||
get_chart_data: function(_columns, result) {
|
get_chart_data: function(_columns, result) {
|
||||||
return {
|
return {
|
||||||
data: {
|
data: {
|
||||||
labels: result.map(d => d[0]),
|
labels: result.map(d => d.creation_date),
|
||||||
datasets: [{
|
datasets: [{
|
||||||
name: 'First Response Time',
|
name: 'First Response Time',
|
||||||
values: result.map(d => d[1])
|
values: result.map(d => d.first_response_time)
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
type: "line",
|
type: "line",
|
||||||
@ -35,8 +35,7 @@ frappe.query_reports["First Response Time for Issues"] = {
|
|||||||
hide_days: 0,
|
hide_days: 0,
|
||||||
hide_seconds: 0
|
hide_seconds: 0
|
||||||
};
|
};
|
||||||
value = frappe.utils.get_formatted_duration(d, duration_options);
|
return frappe.utils.get_formatted_duration(d, duration_options);
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user