14 lines
421 B
Python
14 lines
421 B
Python
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
import webnotes
|
|
from controllers.trends import get_columns,get_data
|
|
|
|
def execute(filters=None):
|
|
if not filters: filters ={}
|
|
data = []
|
|
conditions = get_columns(filters, "Purchase Receipt")
|
|
data = get_data(filters, conditions)
|
|
|
|
return conditions["columns"], data |