mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
-webnotes +frappe 💥
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
wn.pages['support-analytics'].onload = function(wrapper) {
|
||||
wn.ui.make_app_page({
|
||||
frappe.pages['support-analytics'].onload = function(wrapper) {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
title: wn._('Support Analytics'),
|
||||
title: frappe._('Support Analytics'),
|
||||
single_column: true
|
||||
});
|
||||
|
||||
@@ -15,10 +15,10 @@ wn.pages['support-analytics'].onload = function(wrapper) {
|
||||
|
||||
}
|
||||
|
||||
erpnext.SupportAnalytics = wn.views.GridReportWithPlot.extend({
|
||||
erpnext.SupportAnalytics = frappe.views.GridReportWithPlot.extend({
|
||||
init: function(wrapper) {
|
||||
this._super({
|
||||
title: wn._("Support Analtyics"),
|
||||
title: frappe._("Support Analtyics"),
|
||||
page: wrapper,
|
||||
parent: $(wrapper).find('.layout-main'),
|
||||
appframe: wrapper.appframe,
|
||||
@@ -27,22 +27,22 @@ erpnext.SupportAnalytics = wn.views.GridReportWithPlot.extend({
|
||||
},
|
||||
|
||||
filters: [
|
||||
{fieldtype:"Select", label: wn._("Fiscal Year"), link:"Fiscal Year",
|
||||
{fieldtype:"Select", label: frappe._("Fiscal Year"), link:"Fiscal Year",
|
||||
default_value: "Select Fiscal Year..."},
|
||||
{fieldtype:"Date", label: wn._("From Date")},
|
||||
{fieldtype:"Label", label: wn._("To")},
|
||||
{fieldtype:"Date", label: wn._("To Date")},
|
||||
{fieldtype:"Select", label: wn._("Range"),
|
||||
{fieldtype:"Date", label: frappe._("From Date")},
|
||||
{fieldtype:"Label", label: frappe._("To")},
|
||||
{fieldtype:"Date", label: frappe._("To Date")},
|
||||
{fieldtype:"Select", label: frappe._("Range"),
|
||||
options:["Daily", "Weekly", "Monthly", "Quarterly", "Yearly"]},
|
||||
{fieldtype:"Button", label: wn._("Refresh"), icon:"icon-refresh icon-white"},
|
||||
{fieldtype:"Button", label: wn._("Reset Filters")}
|
||||
{fieldtype:"Button", label: frappe._("Refresh"), icon:"icon-refresh icon-white"},
|
||||
{fieldtype:"Button", label: frappe._("Reset Filters")}
|
||||
],
|
||||
|
||||
setup_columns: function() {
|
||||
var std_columns = [
|
||||
{id: "check", name: wn._("Plot"), field: "check", width: 30,
|
||||
{id: "check", name: frappe._("Plot"), field: "check", width: 30,
|
||||
formatter: this.check_formatter},
|
||||
{id: "status", name: wn._("Status"), field: "status", width: 100},
|
||||
{id: "status", name: frappe._("Status"), field: "status", width: 100},
|
||||
];
|
||||
this.make_date_range_columns();
|
||||
this.columns = std_columns.concat(this.columns);
|
||||
@@ -64,7 +64,7 @@ erpnext.SupportAnalytics = wn.views.GridReportWithPlot.extend({
|
||||
var total_responded = {};
|
||||
|
||||
|
||||
$.each(wn.report_dump.data["Support Ticket"], function(i, d) {
|
||||
$.each(frappe.report_dump.data["Support Ticket"], function(i, d) {
|
||||
var dateobj = dateutil.str_to_obj(d.creation);
|
||||
var date = d.creation.split(" ")[0];
|
||||
var col = me.column_map[date];
|
||||
|
||||
@@ -1,92 +1,92 @@
|
||||
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt"
|
||||
|
||||
wn.module_page["Support"] = [
|
||||
frappe.module_page["Support"] = [
|
||||
{
|
||||
title: wn._("Top"),
|
||||
title: frappe._("Top"),
|
||||
top: true,
|
||||
icon: "icon-copy",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Support Ticket"),
|
||||
description: wn._("Support queries from customers."),
|
||||
label: frappe._("Support Ticket"),
|
||||
description: frappe._("Support queries from customers."),
|
||||
doctype:"Support Ticket"
|
||||
},
|
||||
{
|
||||
label: wn._("Customer Issue"),
|
||||
description: wn._("Customer Issue against Serial No."),
|
||||
label: frappe._("Customer Issue"),
|
||||
description: frappe._("Customer Issue against Serial No."),
|
||||
doctype:"Customer Issue"
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
title: wn._("Documents"),
|
||||
title: frappe._("Documents"),
|
||||
icon: "icon-copy",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Maintenance Schedule"),
|
||||
description: wn._("Plan for maintenance visits."),
|
||||
label: frappe._("Maintenance Schedule"),
|
||||
description: frappe._("Plan for maintenance visits."),
|
||||
doctype:"Maintenance Schedule"
|
||||
},
|
||||
{
|
||||
label: wn._("Maintenance Visit"),
|
||||
description: wn._("Visit report for maintenance call."),
|
||||
label: frappe._("Maintenance Visit"),
|
||||
description: frappe._("Visit report for maintenance call."),
|
||||
doctype:"Maintenance Visit"
|
||||
},
|
||||
{
|
||||
label: wn._("Newsletter"),
|
||||
description: wn._("Newsletters to contacts, leads."),
|
||||
label: frappe._("Newsletter"),
|
||||
description: frappe._("Newsletters to contacts, leads."),
|
||||
doctype:"Newsletter"
|
||||
},
|
||||
{
|
||||
label: wn._("Communication"),
|
||||
description: wn._("Communication log."),
|
||||
label: frappe._("Communication"),
|
||||
description: frappe._("Communication log."),
|
||||
doctype:"Communication"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Masters"),
|
||||
title: frappe._("Masters"),
|
||||
icon: "icon-book",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Serial No"),
|
||||
description: wn._("Single unit of an Item."),
|
||||
label: frappe._("Serial No"),
|
||||
description: frappe._("Single unit of an Item."),
|
||||
doctype:"Serial No"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Setup"),
|
||||
title: frappe._("Setup"),
|
||||
icon: "icon-cog",
|
||||
items: [
|
||||
{
|
||||
"route":"Form/Email Settings/Email Settings",
|
||||
"label":wn._("Email Settings"),
|
||||
"description":wn._("Setup to pull emails from support email account"),
|
||||
"label":frappe._("Email Settings"),
|
||||
"description":frappe._("Setup to pull emails from support email account"),
|
||||
doctype: "Email Settings"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Analytics"),
|
||||
title: frappe._("Analytics"),
|
||||
right: true,
|
||||
icon: "icon-bar-chart",
|
||||
items: [
|
||||
{
|
||||
"label":wn._("Support Analytics"),
|
||||
"label":frappe._("Support Analytics"),
|
||||
page: "support-analytics"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Reports"),
|
||||
title: frappe._("Reports"),
|
||||
right: true,
|
||||
icon: "icon-list",
|
||||
items: [
|
||||
{
|
||||
"label":wn._("Maintenance Schedules"),
|
||||
"label":frappe._("Maintenance Schedules"),
|
||||
route: "query-report/Maintenance Schedules",
|
||||
doctype: "Maintenance Schedule"
|
||||
}
|
||||
@@ -95,5 +95,5 @@ wn.module_page["Support"] = [
|
||||
]
|
||||
|
||||
pscript['onload_support-home'] = function(wrapper) {
|
||||
wn.views.moduleview.make(wrapper, "Support");
|
||||
frappe.views.moduleview.make(wrapper, "Support");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user