<?php
global $runnerTableSettings;
$runnerTableSettings['qa_outgoing_inspection_item'] = array(
	'name' => 'qa_outgoing_inspection_item',
	'shortName' => 'qa_outgoing_inspection_item',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'qa_outgoing_inspection_item',
	'afterAddDetail' => 'qa_outgoing_inspection_item',
	'detailsBadgeColor' => 'cd853f',
	'sql' => 'SELECT
	id,
	qa_outgoing_inspection_id,
	line_no,
	item_type,
	item_id,
	item_description,
	quantity,
	uom,
	production_date,
	kind_of_ffp,
	batch_no,
	expiry_date,
	remarks
FROM
	qa_outgoing_inspection_item',
	'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' => 'qa_outgoing_inspection_item' 
		),
		'qa_outgoing_inspection_id' => array(
			'name' => 'qa_outgoing_inspection_id',
			'goodName' => 'qa_outgoing_inspection_id',
			'strField' => 'qa_outgoing_inspection_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'qa_outgoing_inspection_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'qa_outgoing_inspection',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'inspection_no' 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item',
			'viewLinkTable' => 'qa_outgoing_inspection',
			'viewLinkLookup' => true 
		),
		'line_no' => array(
			'name' => 'line_no',
			'goodName' => 'line_no',
			'strField' => 'line_no',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'line_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'item_type' => array(
			'name' => 'item_type',
			'goodName' => 'item_type',
			'strField' => 'item_type',
			'index' => 4,
			'type' => 129,
			'sqlExpression' => 'item_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupValues' => array( 
						'FFP',
						'RTEF',
						'NON_FOOD',
						'OTHER' 
					),
					'lookupTable' => 'item',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'description',
					'lookupDisplayField' => 'description',
					'lookupAutofillEdit' => true,
					'lookupAutofillFields' => array( 
						array(
							'masterField' => 'item_description',
							'lookupField' => 'description' 
						),
						array(
							'masterField' => 'uom',
							'lookupField' => 'unit_id' 
						) 
					) 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item',
			'viewLinkTable' => 'item',
			'viewLinkLookup' => true 
		),
		'item_id' => array(
			'name' => 'item_id',
			'goodName' => 'item_id',
			'strField' => 'item_id',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'item_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'item_description' => array(
			'name' => 'item_description',
			'goodName' => 'item_description',
			'strField' => 'item_description',
			'index' => 6,
			'sqlExpression' => 'item_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Readonly' 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'quantity' => array(
			'name' => 'quantity',
			'goodName' => 'quantity',
			'strField' => 'quantity',
			'index' => 7,
			'type' => 14,
			'sqlExpression' => 'quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'uom' => array(
			'name' => 'uom',
			'goodName' => 'uom',
			'strField' => 'uom',
			'index' => 8,
			'sqlExpression' => 'uom',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Readonly' 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'production_date' => array(
			'name' => 'production_date',
			'goodName' => 'production_date',
			'strField' => 'production_date',
			'index' => 9,
			'type' => 7,
			'sqlExpression' => 'production_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'kind_of_ffp' => array(
			'name' => 'kind_of_ffp',
			'goodName' => 'kind_of_ffp',
			'strField' => 'kind_of_ffp',
			'index' => 10,
			'type' => 129,
			'sqlExpression' => 'kind_of_ffp',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'VACUUM',
						'LOOSE_PACK',
						'MODIFIED_COMPOSITION',
						'NOT_APPLICABLE' 
					) 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'batch_no' => array(
			'name' => 'batch_no',
			'goodName' => 'batch_no',
			'strField' => 'batch_no',
			'index' => 11,
			'sqlExpression' => 'batch_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'lookupTable' => 'batch',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'id' 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'expiry_date' => array(
			'name' => 'expiry_date',
			'goodName' => 'expiry_date',
			'strField' => 'expiry_date',
			'index' => 12,
			'type' => 7,
			'sqlExpression' => 'expiry_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Readonly',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 13,
			'sqlExpression' => 'remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_inspection_item' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'qa_outgoing_inspection',
			'detailsKeys' => array( 
				'qa_outgoing_inspection_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	qa_outgoing_inspection_id,
	line_no,
	item_type,
	item_id,
	item_description,
	quantity,
	uom,
	production_date,
	kind_of_ffp,
	batch_no,
	expiry_date,
	remarks
FROM
	qa_outgoing_inspection_item',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'qa_outgoing_inspection_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'qa_outgoing_inspection_id' 
				),
				'encrypted' => false,
				'columnName' => 'qa_outgoing_inspection_id' 
			),
			array(
				'sql' => 'line_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'line_no' 
				),
				'encrypted' => false,
				'columnName' => 'line_no' 
			),
			array(
				'sql' => 'item_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'item_type' 
				),
				'encrypted' => false,
				'columnName' => 'item_type' 
			),
			array(
				'sql' => 'item_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'item_id' 
				),
				'encrypted' => false,
				'columnName' => 'item_id' 
			),
			array(
				'sql' => 'item_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'item_description' 
				),
				'encrypted' => false,
				'columnName' => 'item_description' 
			),
			array(
				'sql' => 'quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'quantity' 
				),
				'encrypted' => false,
				'columnName' => 'quantity' 
			),
			array(
				'sql' => 'uom',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'uom' 
				),
				'encrypted' => false,
				'columnName' => 'uom' 
			),
			array(
				'sql' => 'production_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'production_date' 
				),
				'encrypted' => false,
				'columnName' => 'production_date' 
			),
			array(
				'sql' => 'kind_of_ffp',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'kind_of_ffp' 
				),
				'encrypted' => false,
				'columnName' => 'kind_of_ffp' 
			),
			array(
				'sql' => 'batch_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'batch_no' 
				),
				'encrypted' => false,
				'columnName' => 'batch_no' 
			),
			array(
				'sql' => 'expiry_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'expiry_date' 
				),
				'encrypted' => false,
				'columnName' => 'expiry_date' 
			),
			array(
				'sql' => 'remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_inspection_item',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'qa_outgoing_inspection_item',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'qa_outgoing_inspection_item',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'qa_outgoing_inspection_id',
						'line_no',
						'item_type',
						'item_id',
						'item_description',
						'quantity',
						'uom',
						'production_date',
						'kind_of_ffp',
						'batch_no',
						'expiry_date',
						'remarks' 
					),
					'name' => 'qa_outgoing_inspection_item' 
				),
				'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( 
			 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => -1,
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	qa_outgoing_inspection_id,
	line_no,
	item_type,
	item_id,
	item_description,
	quantity,
	uom,
	production_date,
	kind_of_ffp,
	batch_no,
	expiry_date,
	remarks',
		'fromListSql' => 'FROM
	qa_outgoing_inspection_item',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'qa_outgoing_inspection_item',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'qa_outgoing_inspection_id',
			'line_no',
			'item_type',
			'item_id',
			'item_description',
			'quantity',
			'uom',
			'production_date',
			'kind_of_ffp',
			'batch_no',
			'expiry_date',
			'remarks' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'qa_outgoing_inspection_id',
			'line_no',
			'item_type',
			'item_id',
			'item_description',
			'quantity',
			'uom',
			'production_date',
			'kind_of_ffp',
			'batch_no',
			'expiry_date',
			'remarks' 
		) 
	),
	'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['qa_outgoing_inspection_item'] = array(
	'tableCaption' => 'Qa Outgoing Inspection Item',
	'fieldLabels' => array(
		'id' => 'Id',
		'qa_outgoing_inspection_id' => 'Qa Outgoing Inspection Id',
		'line_no' => 'Line No',
		'item_type' => 'Item Type',
		'item_id' => 'Item Id',
		'item_description' => 'Item Description',
		'quantity' => 'Quantity',
		'uom' => 'Uom',
		'production_date' => 'Production Date',
		'kind_of_ffp' => 'Kind Of Ffp',
		'batch_no' => 'Batch No',
		'expiry_date' => 'Expiry Date',
		'remarks' => 'Remarks' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'qa_outgoing_inspection_id' => '',
		'line_no' => '',
		'item_type' => '',
		'item_id' => '',
		'item_description' => '',
		'quantity' => '',
		'uom' => '',
		'production_date' => '',
		'kind_of_ffp' => '',
		'batch_no' => '',
		'expiry_date' => '',
		'remarks' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'qa_outgoing_inspection_id' => '',
		'line_no' => '',
		'item_type' => '',
		'item_id' => '',
		'item_description' => '',
		'quantity' => '',
		'uom' => '',
		'production_date' => '',
		'kind_of_ffp' => '',
		'batch_no' => '',
		'expiry_date' => '',
		'remarks' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>