fix: renamed view types, added default

This commit is contained in:
Abhishek Balam 2020-05-09 22:09:02 +05:30
parent d543830a59
commit b59f2780eb
2 changed files with 5 additions and 4 deletions

View File

@ -4,11 +4,12 @@
frappe.query_reports["Customer Acquisition and Loyalty"] = {
"filters": [
{
"fieldname":"view_type",
"fieldname": "view_type",
"label": __("View Type"),
"fieldtype": "Select",
"default": "Time Series",
"options": ["Time Series", "Territory Tree"]
"options": ["Monthly", "Territory Wise"],
"default": "Monthly",
"reqd": 1
},
{
"fieldname":"company",

View File

@ -52,7 +52,7 @@ def execute(filters=None):
'width': 150
}
]
if filters.get('view_type') == 'Territory Tree':
if filters.get('view_type') == 'Territory Wise':
return get_data_by_territory(filters, common_columns)
else:
return get_data_by_time(filters, common_columns)