{
	"name": "query/manager/product/product_work/actual/employee_open_phase.json",
	"table": [
		{
			"record_type": ["actual"],
			"table": "product_work"
		}
	],
	"parameter": {
		"employee": "",
		"production_lot": "",
		"work_phase": 0
	},
	"field": ["prwo.record_id"],
	"Zdatabase": "4d",
	"query": [
		["prwo.production_lot", "=", "production_lot"],
		"and",
		["prwo.work_phase_number", "=", "work_phase"],
		"and",
		["prwo.json_data.start_person_id", "=", "person"],
		"and",
		"open"
	],
	"set": {
		"open": [
				["prwo.work_phase_type", "=", "AL"],
				"or",
				["prwo.json_data.subtype", "=", "KE"]
			]
	}
}