{
	"name": "query/manager/product/product_work/order/opennotprinted-vaihe1.json",
	"info": "---- ?? tarkoittaa epäselvää",
	"table": [
		{
			"record_type": ["schedule"],
			"table": "product_work"
		}
	],
	"query": [
		["COMPILER_xapp_constant"],
		["wo_OPEN_QRY", ["false"]],
		["_txt", "=", ["ld_kStateLoaded"]],
		["_qry_Fld", ["0", ["pro.production_order_state", "=", "_txt"], "*", "true", "false"]],
		["_txt", "=", ""],
		["_qry_Fld", ["0", ["pro.production_order_id", "=", "_txt"], "&", "true", "false"]],
		["_sel_RELATE_MANY_SELECTION", ["prwo.production_lot"]],
		["_long", "=", "1"],
		["_qry_Fld", ["0", ["prwo.work_phase_number", "=", "_long"], "", "true", "false"]],
		["_long", "=", ["_fo_SpecialOrderFld", ["set", ["prwo.json_data.critical_start_time"]]]]
	]
}