2018-01-10 12:18:03 +00:00
|
|
|
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
frappe.query_reports["GSTR-1"] = {
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"fieldname":"company",
|
|
|
|
"label": __("Company"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
|
|
|
"reqd": 1,
|
|
|
|
"default": frappe.defaults.get_user_default("Company")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"from_date",
|
|
|
|
"label": __("From Date"),
|
|
|
|
"fieldtype": "Date",
|
|
|
|
"reqd": 1,
|
|
|
|
"default": frappe.datetime.add_months(frappe.datetime.get_today(), -3),
|
|
|
|
"width": "80"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"to_date",
|
|
|
|
"label": __("To Date"),
|
|
|
|
"fieldtype": "Date",
|
|
|
|
"reqd": 1,
|
|
|
|
"default": frappe.datetime.get_today()
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"type_of_business",
|
|
|
|
"label": __("Type of Business"),
|
|
|
|
"fieldtype": "Select",
|
|
|
|
"reqd": 1,
|
2018-01-26 05:57:22 +00:00
|
|
|
"options": ["B2B", "B2C Large", "B2C Small","CDNR", "EXPORT"],
|
2018-01-10 12:18:03 +00:00
|
|
|
"default": "B2B"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|