Show Delivery Note and Purchase Receipt based on SO and PO if it not defined in SI/PI #2166
34 lines
757 B
JavaScript
34 lines
757 B
JavaScript
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
frappe.query_reports["Sales Register"] = {
|
|
"filters": [
|
|
{
|
|
"fieldname":"from_date",
|
|
"label": __("From Date"),
|
|
"fieldtype": "Date",
|
|
"default": frappe.defaults.get_default("year_start_date"),
|
|
"width": "80"
|
|
},
|
|
{
|
|
"fieldname":"to_date",
|
|
"label": __("To Date"),
|
|
"fieldtype": "Date",
|
|
"default": get_today()
|
|
},
|
|
{
|
|
"fieldname":"customer",
|
|
"label": __("Customer"),
|
|
"fieldtype": "Link",
|
|
"options": "Customer"
|
|
},
|
|
{
|
|
"fieldname":"company",
|
|
"label": __("Company"),
|
|
"fieldtype": "Link",
|
|
"options": "Company",
|
|
"default": frappe.defaults.get_user_default("company")
|
|
}
|
|
]
|
|
}
|