{
	"name": "query/manager/product/product_work/order/sales_order_action/sales_order_query.json",
	"table": [
		{
			"record_type": ["schedule"],
			"table": "product_work"
		}
	],
	"parameter": {
		"load_group": "rec.loag_group"
	},
	"order": [
		"prwo.json_data.critical_start_time",
		">",
		"prwo.json_data.critical_start_time",
		">",
		"prwo.json_data.production_lot__work_ph",
		">"
	],
	"query": [
		["prwo.work_phase_state", "in", ["KU", "AL"]],
		"and",
		["pro.production_order_state", "in", ["KU", "AL"]],
		"and",
		["prwo.resource_id", "=", "load_group"]
	]
}