<?php
global $runnerTableSettings;
$runnerTableSettings['augmentation_portal_request_detail'] = array(
	'name' => 'augmentation_portal_request_detail',
	'shortName' => 'augmentation_portal_request_detail',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'afterEditDetails' => 'augmentation_portal_request_detail',
	'afterAddDetail' => 'augmentation_portal_request_detail',
	'detailsBadgeColor' => '00c2c5',
	'sql' => 'SELECT
	portal_request_detail_id,
	portal_request_id,
	line_no,
	category_id,
	requested_item_description,
	quantity,
	unit,
	remarks,
	mapped_item_id,
	mapped_item_description,
	approved_qty,
	created_at
FROM
	augmentation_portal_request_detail',
	'keyFields' => array( 
		'portal_request_detail_id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'portal_request_detail_id' => array(
			'name' => 'portal_request_detail_id',
			'goodName' => 'portal_request_detail_id',
			'strField' => 'portal_request_detail_id',
			'index' => 1,
			'type' => 20,
			'autoinc' => true,
			'sqlExpression' => 'portal_request_detail_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'portal_request_id' => array(
			'name' => 'portal_request_id',
			'goodName' => 'portal_request_id',
			'strField' => 'portal_request_id',
			'index' => 2,
			'type' => 20,
			'sqlExpression' => 'portal_request_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'augmentation_portal_request',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'portal_request_id',
					'lookupDisplayField' => 'portal_request_no' 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail',
			'viewLinkTable' => 'augmentation_portal_request',
			'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' => 'augmentation_portal_request_detail' 
		),
		'category_id' => array(
			'name' => 'category_id',
			'goodName' => 'category_id',
			'strField' => 'category_id',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'category_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'augmentation_request_category',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'category_id',
					'lookupDisplayField' => 'category_code' 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail',
			'viewLinkTable' => 'augmentation_request_category',
			'viewLinkLookup' => true 
		),
		'requested_item_description' => array(
			'name' => 'requested_item_description',
			'goodName' => 'requested_item_description',
			'strField' => 'requested_item_description',
			'index' => 5,
			'sqlExpression' => 'requested_item_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'quantity' => array(
			'name' => 'quantity',
			'goodName' => 'quantity',
			'strField' => 'quantity',
			'index' => 6,
			'type' => 14,
			'sqlExpression' => 'quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'unit' => array(
			'name' => 'unit',
			'goodName' => 'unit',
			'strField' => 'unit',
			'index' => 7,
			'sqlExpression' => 'unit',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 8,
			'sqlExpression' => 'remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'mapped_item_id' => array(
			'name' => 'mapped_item_id',
			'goodName' => 'mapped_item_id',
			'strField' => 'mapped_item_id',
			'index' => 9,
			'type' => 3,
			'sqlExpression' => 'mapped_item_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'item',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'reference_number' 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail',
			'viewLinkTable' => 'item',
			'viewLinkLookup' => true 
		),
		'mapped_item_description' => array(
			'name' => 'mapped_item_description',
			'goodName' => 'mapped_item_description',
			'strField' => 'mapped_item_description',
			'index' => 10,
			'sqlExpression' => 'mapped_item_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'approved_qty' => array(
			'name' => 'approved_qty',
			'goodName' => 'approved_qty',
			'strField' => 'approved_qty',
			'index' => 11,
			'type' => 14,
			'sqlExpression' => 'approved_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 12,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_portal_request_detail' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'augmentation_portal_request',
			'detailsKeys' => array( 
				'portal_request_id' 
			),
			'masterKeys' => array( 
				'portal_request_id' 
			) 
		),
		array(
			'table' => 'augmentation_request_category',
			'detailsKeys' => array( 
				'category_id' 
			),
			'masterKeys' => array( 
				'category_id' 
			) 
		) 
	),
	'detailsTables' => array( 
		'augmentation_portal_request_allocation' 
	),
	'query' => array(
		'sql' => 'SELECT
	portal_request_detail_id,
	portal_request_id,
	line_no,
	category_id,
	requested_item_description,
	quantity,
	unit,
	remarks,
	mapped_item_id,
	mapped_item_description,
	approved_qty,
	created_at
FROM
	augmentation_portal_request_detail',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'portal_request_detail_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'portal_request_detail_id' 
				),
				'encrypted' => false,
				'columnName' => 'portal_request_detail_id' 
			),
			array(
				'sql' => 'portal_request_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'portal_request_id' 
				),
				'encrypted' => false,
				'columnName' => 'portal_request_id' 
			),
			array(
				'sql' => 'line_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'line_no' 
				),
				'encrypted' => false,
				'columnName' => 'line_no' 
			),
			array(
				'sql' => 'category_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'category_id' 
				),
				'encrypted' => false,
				'columnName' => 'category_id' 
			),
			array(
				'sql' => 'requested_item_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'requested_item_description' 
				),
				'encrypted' => false,
				'columnName' => 'requested_item_description' 
			),
			array(
				'sql' => 'quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'quantity' 
				),
				'encrypted' => false,
				'columnName' => 'quantity' 
			),
			array(
				'sql' => 'unit',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'unit' 
				),
				'encrypted' => false,
				'columnName' => 'unit' 
			),
			array(
				'sql' => 'remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			),
			array(
				'sql' => 'mapped_item_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'mapped_item_id' 
				),
				'encrypted' => false,
				'columnName' => 'mapped_item_id' 
			),
			array(
				'sql' => 'mapped_item_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'mapped_item_description' 
				),
				'encrypted' => false,
				'columnName' => 'mapped_item_description' 
			),
			array(
				'sql' => 'approved_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'approved_qty' 
				),
				'encrypted' => false,
				'columnName' => 'approved_qty' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_portal_request_detail',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'augmentation_portal_request_detail',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'augmentation_portal_request_detail',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'portal_request_detail_id',
						'portal_request_id',
						'line_no',
						'category_id',
						'requested_item_description',
						'quantity',
						'unit',
						'remarks',
						'mapped_item_id',
						'mapped_item_description',
						'approved_qty',
						'created_at' 
					),
					'name' => 'augmentation_portal_request_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( 
			 
		),
		'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'portal_request_detail_id,
	portal_request_id,
	line_no,
	category_id,
	requested_item_description,
	quantity,
	unit,
	remarks,
	mapped_item_id,
	mapped_item_description,
	approved_qty,
	created_at',
		'fromListSql' => 'FROM
	augmentation_portal_request_detail',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'augmentation_portal_request_detail',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'portal_request_detail_id',
			'portal_request_id',
			'line_no',
			'category_id',
			'requested_item_description',
			'quantity',
			'unit',
			'remarks',
			'mapped_item_id',
			'mapped_item_description',
			'approved_qty',
			'created_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'portal_request_detail_id',
			'portal_request_id',
			'line_no',
			'category_id',
			'requested_item_description',
			'quantity',
			'unit',
			'remarks',
			'mapped_item_id',
			'mapped_item_description',
			'approved_qty',
			'created_at' 
		) 
	),
	'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['augmentation_portal_request_detail'] = array(
	'tableCaption' => 'Augmentation Portal Request Detail',
	'fieldLabels' => array(
		'portal_request_detail_id' => 'Portal Request Detail Id',
		'portal_request_id' => 'Portal Request Id',
		'line_no' => 'Line No',
		'category_id' => 'Category Id',
		'requested_item_description' => 'Requested Item Description',
		'quantity' => 'Quantity',
		'unit' => 'Unit',
		'remarks' => 'Remarks',
		'mapped_item_id' => 'Mapped Item Id',
		'mapped_item_description' => 'Mapped Item Description',
		'approved_qty' => 'Approved Qty',
		'created_at' => 'Created At' 
	),
	'fieldTooltips' => array(
		'portal_request_detail_id' => '',
		'portal_request_id' => '',
		'line_no' => '',
		'category_id' => '',
		'requested_item_description' => '',
		'quantity' => '',
		'unit' => '',
		'remarks' => '',
		'mapped_item_id' => '',
		'mapped_item_description' => '',
		'approved_qty' => '',
		'created_at' => '' 
	),
	'fieldPlaceholders' => array(
		'portal_request_detail_id' => '',
		'portal_request_id' => '',
		'line_no' => '',
		'category_id' => '',
		'requested_item_description' => '',
		'quantity' => '',
		'unit' => '',
		'remarks' => '',
		'mapped_item_id' => '',
		'mapped_item_description' => '',
		'approved_qty' => '',
		'created_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>