<?php
global $runnerTableSettings;
$runnerTableSettings['production_suggestion_detail'] = array(
	'name' => 'production_suggestion_detail',
	'shortName' => 'production_suggestion_detail',
	'pagesByType' => array(
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'production_suggestion_detail',
	'afterAddDetail' => 'production_suggestion_detail',
	'detailsBadgeColor' => '000',
	'strOrderBy' => 'ORDER BY
	run_id DESC',
	'orderInfo' => array( 
		array(
			'index' => 2,
			'dir' => 'DESC',
			'field' => 'run_id' 
		) 
	),
	'sql' => 'SELECT
	id,
	run_id,
	warehouse_id,
	warehouse_code,
	warehouse_name,
	finished_good_id,
	finished_good_sku,
	finished_good_name,
	finished_good_description,
	component_count,
	insufficient_component_count,
	max_possible_qty,
	suggested_qty,
	target_qty,
	component_breakdown,
	selected_for_schedule,
	status,
	created_at,
	forecasted_expiry_date,
	forecasted_expiry_status
FROM
	production_suggestion_detail
ORDER BY
	run_id DESC
',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'run_id' => array(
			'name' => 'run_id',
			'goodName' => 'run_id',
			'strField' => 'run_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'run_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail',
			'viewLinkTable' => 'production_suggestion_run',
			'viewLinkLookup' => false 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'warehouse_code' => array(
			'name' => 'warehouse_code',
			'goodName' => 'warehouse_code',
			'strField' => 'warehouse_code',
			'index' => 4,
			'sqlExpression' => 'warehouse_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'warehouse_name' => array(
			'name' => 'warehouse_name',
			'goodName' => 'warehouse_name',
			'strField' => 'warehouse_name',
			'index' => 5,
			'sqlExpression' => 'warehouse_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'finished_good_id' => array(
			'name' => 'finished_good_id',
			'goodName' => 'finished_good_id',
			'strField' => 'finished_good_id',
			'index' => 6,
			'type' => 3,
			'sqlExpression' => 'finished_good_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'finished_good_sku' => array(
			'name' => 'finished_good_sku',
			'goodName' => 'finished_good_sku',
			'strField' => 'finished_good_sku',
			'index' => 7,
			'sqlExpression' => 'finished_good_sku',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'finished_good_name' => array(
			'name' => 'finished_good_name',
			'goodName' => 'finished_good_name',
			'strField' => 'finished_good_name',
			'index' => 8,
			'sqlExpression' => 'finished_good_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'finished_good_description' => array(
			'name' => 'finished_good_description',
			'goodName' => 'finished_good_description',
			'strField' => 'finished_good_description',
			'index' => 9,
			'sqlExpression' => 'finished_good_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'component_count' => array(
			'name' => 'component_count',
			'goodName' => 'component_count',
			'strField' => 'component_count',
			'index' => 10,
			'type' => 3,
			'sqlExpression' => 'component_count',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'insufficient_component_count' => array(
			'name' => 'insufficient_component_count',
			'goodName' => 'insufficient_component_count',
			'strField' => 'insufficient_component_count',
			'index' => 11,
			'type' => 3,
			'sqlExpression' => 'insufficient_component_count',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'max_possible_qty' => array(
			'name' => 'max_possible_qty',
			'goodName' => 'max_possible_qty',
			'strField' => 'max_possible_qty',
			'index' => 12,
			'type' => 14,
			'sqlExpression' => 'max_possible_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'suggested_qty' => array(
			'name' => 'suggested_qty',
			'goodName' => 'suggested_qty',
			'strField' => 'suggested_qty',
			'index' => 13,
			'type' => 14,
			'sqlExpression' => 'suggested_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'target_qty' => array(
			'name' => 'target_qty',
			'goodName' => 'target_qty',
			'strField' => 'target_qty',
			'index' => 14,
			'type' => 14,
			'sqlExpression' => 'target_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'component_breakdown' => array(
			'name' => 'component_breakdown',
			'goodName' => 'component_breakdown',
			'strField' => 'component_breakdown',
			'index' => 15,
			'type' => 201,
			'sqlExpression' => 'component_breakdown',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'selected_for_schedule' => array(
			'name' => 'selected_for_schedule',
			'goodName' => 'selected_for_schedule',
			'strField' => 'selected_for_schedule',
			'index' => 16,
			'type' => 2,
			'sqlExpression' => 'selected_for_schedule',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 17,
			'type' => 129,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'SUGGESTED',
						'SELECTED',
						'SCHEDULED',
						'CANCELLED' 
					) 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 18,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'forecasted_expiry_date' => array(
			'name' => 'forecasted_expiry_date',
			'goodName' => 'forecasted_expiry_date',
			'strField' => 'forecasted_expiry_date',
			'index' => 19,
			'type' => 7,
			'sqlExpression' => 'forecasted_expiry_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		),
		'forecasted_expiry_status' => array(
			'name' => 'forecasted_expiry_status',
			'goodName' => 'forecasted_expiry_status',
			'strField' => 'forecasted_expiry_status',
			'index' => 20,
			'sqlExpression' => 'forecasted_expiry_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'production_suggestion_detail' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'production_suggestion_run',
			'detailsKeys' => array( 
				'run_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	run_id,
	warehouse_id,
	warehouse_code,
	warehouse_name,
	finished_good_id,
	finished_good_sku,
	finished_good_name,
	finished_good_description,
	component_count,
	insufficient_component_count,
	max_possible_qty,
	suggested_qty,
	target_qty,
	component_breakdown,
	selected_for_schedule,
	status,
	created_at,
	forecasted_expiry_date,
	forecasted_expiry_status
FROM
	production_suggestion_detail
ORDER BY
	run_id DESC
',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'run_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'run_id' 
				),
				'encrypted' => false,
				'columnName' => 'run_id' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_id' 
			),
			array(
				'sql' => 'warehouse_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'warehouse_code' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_code' 
			),
			array(
				'sql' => 'warehouse_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'warehouse_name' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_name' 
			),
			array(
				'sql' => 'finished_good_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'finished_good_id' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_id' 
			),
			array(
				'sql' => 'finished_good_sku',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'finished_good_sku' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_sku' 
			),
			array(
				'sql' => 'finished_good_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'finished_good_name' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_name' 
			),
			array(
				'sql' => 'finished_good_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'finished_good_description' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_description' 
			),
			array(
				'sql' => 'component_count',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'component_count' 
				),
				'encrypted' => false,
				'columnName' => 'component_count' 
			),
			array(
				'sql' => 'insufficient_component_count',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'insufficient_component_count' 
				),
				'encrypted' => false,
				'columnName' => 'insufficient_component_count' 
			),
			array(
				'sql' => 'max_possible_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'max_possible_qty' 
				),
				'encrypted' => false,
				'columnName' => 'max_possible_qty' 
			),
			array(
				'sql' => 'suggested_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'suggested_qty' 
				),
				'encrypted' => false,
				'columnName' => 'suggested_qty' 
			),
			array(
				'sql' => 'target_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'target_qty' 
				),
				'encrypted' => false,
				'columnName' => 'target_qty' 
			),
			array(
				'sql' => 'component_breakdown',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'component_breakdown' 
				),
				'encrypted' => false,
				'columnName' => 'component_breakdown' 
			),
			array(
				'sql' => 'selected_for_schedule',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'selected_for_schedule' 
				),
				'encrypted' => false,
				'columnName' => 'selected_for_schedule' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			),
			array(
				'sql' => 'forecasted_expiry_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'forecasted_expiry_date' 
				),
				'encrypted' => false,
				'columnName' => 'forecasted_expiry_date' 
			),
			array(
				'sql' => 'forecasted_expiry_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'forecasted_expiry_status' 
				),
				'encrypted' => false,
				'columnName' => 'forecasted_expiry_status' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'production_suggestion_detail',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'production_suggestion_detail',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'run_id',
						'mother_facility_id',
						'mother_facility_code',
						'mother_facility_name',
						'warehouse_id',
						'warehouse_code',
						'warehouse_name',
						'finished_good_id',
						'finished_good_sku',
						'finished_good_name',
						'finished_good_description',
						'component_count',
						'insufficient_component_count',
						'max_possible_qty',
						'suggested_qty',
						'target_qty',
						'forecasted_expiry_date',
						'forecasted_expiry_status',
						'component_breakdown',
						'selected_for_schedule',
						'status',
						'created_at' 
					),
					'name' => 'production_suggestion_detail' 
				),
				'joinOn' => array(
					'sql' => '',
					'parsed' => false,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => null 
				),
				'joinList' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						 
					),
					'field2' => array( 
						 
					) 
				),
				'link' => 0 
			) 
		),
		'where' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			array(
				'sql' => 'run_id DESC',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'production_suggestion_detail',
					'name' => 'run_id' 
				),
				'asc' => false,
				'columnNumber' => 2 
			) 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => 0,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 2,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 3,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 4,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 5,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 6,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 7,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 8,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 9,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 10,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 11,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 12,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 13,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 14,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 15,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 16,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 17,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 18,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 19,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	run_id,
	warehouse_id,
	warehouse_code,
	warehouse_name,
	finished_good_id,
	finished_good_sku,
	finished_good_name,
	finished_good_description,
	component_count,
	insufficient_component_count,
	max_possible_qty,
	suggested_qty,
	target_qty,
	component_breakdown,
	selected_for_schedule,
	status,
	created_at,
	forecasted_expiry_date,
	forecasted_expiry_status',
		'fromListSql' => 'FROM
	production_suggestion_detail',
		'orderBySql' => 'ORDER BY
	run_id DESC',
		'tailSql' => '' 
	),
	'hasJsEvents' => true,
	'originalTable' => 'production_suggestion_detail',
	'originalPagesByType' => array(
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'run_id',
			'warehouse_id',
			'warehouse_code',
			'warehouse_name',
			'finished_good_id',
			'finished_good_sku',
			'finished_good_name',
			'finished_good_description',
			'component_count',
			'insufficient_component_count',
			'max_possible_qty',
			'suggested_qty',
			'target_qty',
			'component_breakdown',
			'selected_for_schedule',
			'status',
			'created_at',
			'forecasted_expiry_date',
			'forecasted_expiry_status' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'run_id',
			'warehouse_id',
			'warehouse_code',
			'warehouse_name',
			'finished_good_id',
			'finished_good_sku',
			'finished_good_name',
			'finished_good_description',
			'component_count',
			'insufficient_component_count',
			'max_possible_qty',
			'suggested_qty',
			'target_qty',
			'component_breakdown',
			'selected_for_schedule',
			'status',
			'created_at',
			'forecasted_expiry_date',
			'forecasted_expiry_status' 
		) 
	),
	'connId' => 'conn',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction' 
		),
		'fields' => array(
			 
		) 
	),
	'geoCoding' => array(
		'enabled' => false,
		'latField' => '',
		'lonField' => '',
		'addressFields' => array( 
			 
		) 
	),
	'whereTabs' => array( 
		 
	),
	'labels' => array(
		 
	),
	'chartSettings' => array(
		 
	),
	'dataSourceOperations' => array(
		 
	),
	'calendarSettings' => array(
		'categoryColors' => array( 
			 
		) 
	),
	'ganttSettings' => array(
		'categoryColors' => array( 
			 
		) 
	) 
);

global $runnerTableLabels;
if( mlang_getcurrentlang() === 'English' ) {
	$runnerTableLabels['production_suggestion_detail'] = array(
	'tableCaption' => 'Production Suggestion Detail',
	'fieldLabels' => array(
		'id' => 'ID',
		'run_id' => 'Run ID',
		'warehouse_id' => 'Warehouse ID',
		'warehouse_code' => 'Warehouse Code',
		'warehouse_name' => 'Warehouse Name',
		'finished_good_id' => 'Finished Good ID',
		'finished_good_sku' => 'Finished Good SKU',
		'finished_good_name' => 'Finished Good Name',
		'finished_good_description' => 'Finished Good Description',
		'component_count' => 'Component Count',
		'insufficient_component_count' => 'Insufficient Component Count',
		'max_possible_qty' => 'Max Possible Qty',
		'suggested_qty' => 'Suggested Qty',
		'target_qty' => 'Target Qty',
		'component_breakdown' => 'Component Breakdown',
		'selected_for_schedule' => 'Selected For Schedule',
		'status' => 'Status',
		'created_at' => 'Created At',
		'forecasted_expiry_date' => 'Forecasted Expiry Date',
		'forecasted_expiry_status' => 'Forecasted Expiry Status' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'run_id' => '',
		'warehouse_id' => '',
		'warehouse_code' => '',
		'warehouse_name' => '',
		'finished_good_id' => '',
		'finished_good_sku' => '',
		'finished_good_name' => '',
		'finished_good_description' => '',
		'component_count' => '',
		'insufficient_component_count' => '',
		'max_possible_qty' => '',
		'suggested_qty' => '',
		'target_qty' => '',
		'component_breakdown' => '',
		'selected_for_schedule' => '',
		'status' => '',
		'created_at' => '',
		'forecasted_expiry_date' => '',
		'forecasted_expiry_status' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'run_id' => '',
		'warehouse_id' => '',
		'warehouse_code' => '',
		'warehouse_name' => '',
		'finished_good_id' => '',
		'finished_good_sku' => '',
		'finished_good_name' => '',
		'finished_good_description' => '',
		'component_count' => '',
		'insufficient_component_count' => '',
		'max_possible_qty' => '',
		'suggested_qty' => '',
		'target_qty' => '',
		'component_breakdown' => '',
		'selected_for_schedule' => '',
		'status' => '',
		'created_at' => '',
		'forecasted_expiry_date' => '',
		'forecasted_expiry_status' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>