<reponame>phamos-eu/Stock-Addon<filename>stock_addon/stock_addon/report/customer_wise_stockduration_of_serial_no/customer_wise_stockduration_of_serial_no.js<gh_stars>0// Built by Devarsh Bhatt at Genirex
// Contact hzdkv@example.com


frappe.query_reports["Customer wise Stockduration of Serial No"] = {
	"filters": [
		{
			"fieldname":"from_date",
			"label": __("From Date"),
			"fieldtype": "Date",
			"width": "60px"
		},
		{
			"fieldname":"to_date",
			"label": __("To Date"),
			"fieldtype": "Date",
			"width": "60px"
		},
		{
			"fieldname":"customer",
			"label": __("Choose Customer"),
			"fieldtype": "Link",
			"options": "Customer",
			"width": "60px"
		},
		{
			"fieldname":"project",
			"label": __("Choose Project"),
			"fieldtype": "Link",
			"options": "Project",
			"width": "60px",
			"depends_on": 'eval:doc.customer'
		},
		{
			"fieldname":"kommission",
			"label": __('Kommission'),
			"fieldtype": "MultiSelectList",
			"width": "60px",
			"get_data": function(txt) {
				return frappe.db.get_link_options('Kommission', txt);
			},
			"depends_on": 'eval:doc.customer'
		}
	]
};