<?php
global $runnerTableSettings;
$runnerTableSettings['logistics_job_detail'] = array(
	'name' => 'logistics_job_detail',
	'shortName' => 'logistics_job_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' => 'logistics_job_detail',
	'afterAddDetail' => 'logistics_job_detail',
	'detailsBadgeColor' => '000',
	'sql' => 'SELECT
	id,
	logistics_job_id,
	line_no,
	item_description,
	item_category,
	quantity,
	uom,
	weight,
	volume,
	source_location_id,
	destination_location_id,
	remarks
FROM
	logistics_job_detail',
	'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' => 'logistics_job_detail' 
		),
		'logistics_job_id' => array(
			'name' => 'logistics_job_id',
			'goodName' => 'logistics_job_id',
			'strField' => 'logistics_job_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'logistics_job_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'logistics_job_detail',
			'viewLinkTable' => 'logistics_job',
			'viewLinkLookup' => false 
		),
		'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' => 'logistics_job_detail' 
		),
		'item_description' => array(
			'name' => 'item_description',
			'goodName' => 'item_description',
			'strField' => 'item_description',
			'index' => 4,
			'sqlExpression' => 'item_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'item',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'name',
					'lookupOrderBy' => 'name',
					'lookupControlType' => 1 
				) 
			),
			'tableName' => 'logistics_job_detail',
			'viewLinkTable' => 'item',
			'viewLinkLookup' => true 
		),
		'item_category' => array(
			'name' => 'item_category',
			'goodName' => 'item_category',
			'strField' => 'item_category',
			'index' => 5,
			'sqlExpression' => 'item_category',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'logistics_job_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' => 'logistics_job_detail' 
		),
		'uom' => array(
			'name' => 'uom',
			'goodName' => 'uom',
			'strField' => 'uom',
			'index' => 7,
			'sqlExpression' => 'uom',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'itemunit',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'name',
					'lookupOrderBy' => 'name' 
				) 
			),
			'tableName' => 'logistics_job_detail',
			'viewLinkTable' => 'itemunit',
			'viewLinkLookup' => true 
		),
		'weight' => array(
			'name' => 'weight',
			'goodName' => 'weight',
			'strField' => 'weight',
			'index' => 8,
			'type' => 14,
			'sqlExpression' => 'weight',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'logistics_job_detail' 
		),
		'volume' => array(
			'name' => 'volume',
			'goodName' => 'volume',
			'strField' => 'volume',
			'index' => 9,
			'type' => 14,
			'sqlExpression' => 'volume',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'logistics_job_detail' 
		),
		'source_location_id' => array(
			'name' => 'source_location_id',
			'goodName' => 'source_location_id',
			'strField' => 'source_location_id',
			'index' => 10,
			'type' => 3,
			'sqlExpression' => 'source_location_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'logistics_job_detail' 
		),
		'destination_location_id' => array(
			'name' => 'destination_location_id',
			'goodName' => 'destination_location_id',
			'strField' => 'destination_location_id',
			'index' => 11,
			'type' => 3,
			'sqlExpression' => 'destination_location_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'logistics_job_detail' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 12,
			'type' => 201,
			'sqlExpression' => 'remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'logistics_job_detail' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'logistics_job',
			'detailsKeys' => array( 
				'logistics_job_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	logistics_job_id,
	line_no,
	item_description,
	item_category,
	quantity,
	uom,
	weight,
	volume,
	source_location_id,
	destination_location_id,
	remarks
FROM
	logistics_job_detail',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'logistics_job_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'logistics_job_id' 
				),
				'encrypted' => false,
				'columnName' => 'logistics_job_id' 
			),
			array(
				'sql' => 'line_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'line_no' 
				),
				'encrypted' => false,
				'columnName' => 'line_no' 
			),
			array(
				'sql' => 'item_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'item_description' 
				),
				'encrypted' => false,
				'columnName' => 'item_description' 
			),
			array(
				'sql' => 'item_category',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'item_category' 
				),
				'encrypted' => false,
				'columnName' => 'item_category' 
			),
			array(
				'sql' => 'quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'quantity' 
				),
				'encrypted' => false,
				'columnName' => 'quantity' 
			),
			array(
				'sql' => 'uom',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'uom' 
				),
				'encrypted' => false,
				'columnName' => 'uom' 
			),
			array(
				'sql' => 'weight',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'weight' 
				),
				'encrypted' => false,
				'columnName' => 'weight' 
			),
			array(
				'sql' => 'volume',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'volume' 
				),
				'encrypted' => false,
				'columnName' => 'volume' 
			),
			array(
				'sql' => 'source_location_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'source_location_id' 
				),
				'encrypted' => false,
				'columnName' => 'source_location_id' 
			),
			array(
				'sql' => 'destination_location_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'destination_location_id' 
				),
				'encrypted' => false,
				'columnName' => 'destination_location_id' 
			),
			array(
				'sql' => 'remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'logistics_job_detail',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'logistics_job_detail',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'logistics_job_detail',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'logistics_job_id',
						'line_no',
						'item_description',
						'item_category',
						'quantity',
						'uom',
						'weight',
						'volume',
						'source_location_id',
						'destination_location_id',
						'remarks' 
					),
					'name' => 'logistics_job_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' => 'id,
	logistics_job_id,
	line_no,
	item_description,
	item_category,
	quantity,
	uom,
	weight,
	volume,
	source_location_id,
	destination_location_id,
	remarks',
		'fromListSql' => 'FROM
	logistics_job_detail',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'logistics_job_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',
			'logistics_job_id',
			'line_no',
			'item_description',
			'item_category',
			'quantity',
			'uom',
			'weight',
			'volume',
			'source_location_id',
			'destination_location_id',
			'remarks' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'logistics_job_id',
			'line_no',
			'item_description',
			'item_category',
			'quantity',
			'uom',
			'weight',
			'volume',
			'source_location_id',
			'destination_location_id',
			'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['logistics_job_detail'] = array(
	'tableCaption' => 'Logistics Job Detail',
	'fieldLabels' => array(
		'id' => 'ID',
		'logistics_job_id' => 'Logistics Job ID',
		'line_no' => 'Line No.',
		'item_description' => 'Item Description',
		'item_category' => 'Item Category',
		'quantity' => 'Quantity',
		'uom' => 'UOM',
		'weight' => 'Weight',
		'volume' => 'Volume',
		'source_location_id' => 'Source Location ID',
		'destination_location_id' => 'Destination Location ID',
		'remarks' => 'Remarks' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'logistics_job_id' => '',
		'line_no' => '',
		'item_description' => '',
		'item_category' => '',
		'quantity' => '',
		'uom' => '',
		'weight' => '',
		'volume' => '',
		'source_location_id' => '',
		'destination_location_id' => '',
		'remarks' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'logistics_job_id' => '',
		'line_no' => '',
		'item_description' => '',
		'item_category' => '',
		'quantity' => '',
		'uom' => '',
		'weight' => '',
		'volume' => '',
		'source_location_id' => '',
		'destination_location_id' => '',
		'remarks' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>