Merge pull request #537 from saurabh6790/master
[Trend Reports] Cleanup
This commit is contained in:
commit
0fd1d88710
@ -21,8 +21,7 @@ from controllers.trends import get_columns,get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Purchase Invoice"
|
||||
conditions = get_columns(filters, trans)
|
||||
conditions = get_columns(filters, "Purchase Invoice")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
@ -21,8 +21,7 @@ from controllers.trends import get_columns,get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Sales Invoice"
|
||||
conditions = get_columns(filters, trans)
|
||||
conditions = get_columns(filters, "Sales Invoice")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
@ -21,8 +21,7 @@ from controllers.trends import get_columns,get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Purchase Order"
|
||||
conditions = get_columns(filters, trans)
|
||||
conditions = get_columns(filters, "Purchase Order")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
@ -21,8 +21,7 @@ from controllers.trends import get_columns, get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Quotation"
|
||||
conditions = get_columns(filters, trans)
|
||||
conditions = get_columns(filters, "Quotation")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
@ -21,8 +21,7 @@ from controllers.trends import get_columns,get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Sales Order"
|
||||
conditions = get_columns(filters, trans)
|
||||
conditions = get_columns(filters, "Sales Order")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
@ -21,8 +21,7 @@ from controllers.trends import get_columns,get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Delivery Note"
|
||||
conditions = get_columns(filters, trans)
|
||||
conditions = get_columns(filters, "Delivery Note")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
@ -21,11 +21,7 @@ from controllers.trends import get_columns,get_data
|
||||
def execute(filters=None):
|
||||
if not filters: filters ={}
|
||||
data = []
|
||||
trans = "Purchase Receipt"
|
||||
conditions = get_columns(filters, trans)
|
||||
data = get_data(filters, tab, conditions)
|
||||
|
||||
if not data :
|
||||
webnotes.msgprint("Data not found for selected criterias")
|
||||
conditions = get_columns(filters, "Purchase Receipt")
|
||||
data = get_data(filters, conditions)
|
||||
|
||||
return conditions["columns"], data
|
Loading…
x
Reference in New Issue
Block a user