{
	"name": "query/manager/order/order_row/sales/ah-myohassa_vahvistuspv.json",
	"info": "---- ?? tarkoittaa epäselvää",
	"table": [{
		"record_type": [""],
		"table": "order_row"
	}],
	"query": [
		["C_POINTER", ["_ptr", "_ptr2"]],
		["ARRAY_TEXT", ["_atArr", "0"]],
		["ARRAY_TEXT", ["_atArr2", "0"]],
		["xapp_TblRun", ["kInit", "por_tbl", "noevent"]],
		["_txt", "=", ""],
		["_qry_Fld", ["0", ["ordr.production_lot", "<>", ["->_txt"]], "", "false"]],
		["por_HAE_AVOIMET", ["true", "2"]],
		["_ptr", "=", ["_fld_PtrToFldNumArr", ["ordr.production_lot", "ordr.confirmed_delivery_date", "ordr.record_id"]]],
		["_ptr2", "=", ["_fld_PtrToFldNumArr2", ["_ptr"]]],
		["_sel_SEL_TO_ARR", ["_ptr", "_ptr2"]],
		["xapp_TblRun", ["kInit", "wo_tbl", "noevent"]],
		["_qry_ARRAY", ["pro.production_lot", "por_asProduction_Lot"]],
		["_ptr", "=", ["_fld_PtrToFldNumArr", ["pro.production_lot", "pro.sales_order_id", "pro.sales_order_row"]]],
		["_ptr2", "=", ["_fld_PtrToFldArr2", ["_ptr"]]],
		["_sel_SEL_TO_ARR", ["_ptr", "_ptr2"]],
		["_qry_ARRAY", ["ordr.order_id", "wo_asSales_Order_id"]],
		["sor_HAE_AVOIMET", ["true"]],
		["_ptr", "=", ["_fld_PtrToFldNumArr", ["ordr.order_id", "ordr.row_number", "ordr.delivery_date", "ordr.record_id"]]],
		["_ptr2", "=", ["_fld_PtrToFldArr2", ["_ptr"]]],
		["_sel_SEL_TO_ARR", ["_ptr", "_ptr2"]],
		["_long2", "=", ["Size_of_array", ["wo_asProduction_Lot"]]],
		["ARRAY_TEXT", ["_atArr", "_long2"]],
		["ARRAY_TEXT", ["_atArr2", "_long2"]],
		["_long5", "=", "0"],
		["For ---- ??", [""],
			[
				[""]
			]
		]
	]
}