{
	"name": "form/manager/lead_time/lead_time_query.json",
	"database": "4d",
	"data_query": [
		{"run": [["showSql", [true]]]},
		{
			"tag": "ordr",
			"query": "query/manager/order/order_row/sales/sales_lead_time_grid.json"
		},
		{"run": [["data.ordr", "=", "data.ordr.data"]]},
		{
			"run": [["setRecordArrConcatField", ["data.ordr", "order_with_row", ["ordr.order_id", ".", "ordr.row_number"]]]]
		},
		{
			"run": [["parameter.order_with_row", "=", ["arrayUnique", ["data.ordr", "order_with_row"]]]]
		},
		{
			"tag": "pro_all",
			"query": "query/manager/product/production_order/lead_time_grid.json"
		},
		{
			"run": [["data.pro", "=", ["reduce", ["leadTimeProData", "data.pro_all.data"]]]]
		},
		{"run": [[["map", ["leadTimeOrdrData", "data.ordr", "data.pro"]]]]},
		{"run": [["showSql", [false]]]}
	]
}
