61 lines
1.1 KiB
Python
61 lines
1.1 KiB
Python
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
|
|
# For license information, please see license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
import frappe
|
|
|
|
def execute(filters=None):
|
|
columns, data = [], []
|
|
return columns, data
|
|
|
|
def get_columns():
|
|
|
|
columns = [
|
|
{
|
|
"fieldname": "territory",
|
|
"fieldtype": "Link",
|
|
"label": _("Territory"),
|
|
"options": "Territory",
|
|
"width": 100
|
|
},
|
|
{
|
|
"fieldname": "item_group",
|
|
"fieldtype": "Link",
|
|
"label": _("Item Group"),
|
|
"options": "Item Group",
|
|
"width": 100
|
|
},
|
|
{
|
|
"fieldname": "item",
|
|
"fieldtype": "Link",
|
|
"label": _("Item"),
|
|
"options": "Item",
|
|
"width": 100
|
|
},
|
|
{
|
|
"fieldname": "customer",
|
|
"fieldtype": "Link",
|
|
"label": _("Customer"),
|
|
"options": "Customer",
|
|
"width": 100
|
|
},
|
|
{
|
|
"fieldname": "last_order_date",
|
|
"fieldtype": "Date",
|
|
"label": _("Last Order Date"),
|
|
"width": 100
|
|
},
|
|
{
|
|
"fieldname": "qty",
|
|
"fieldtype": "Float",
|
|
"label": _("Quantity"),
|
|
"width": 100
|
|
},
|
|
{
|
|
"fieldname": "days_since_last_order",
|
|
"fieldtype": "Int",
|
|
"label": _("Days Since Last Order"),
|
|
"width": 100
|
|
},
|
|
]
|