<?php
global $runnerTableSettings;
$runnerTableSettings['document_sequence'] = array(
	'name' => 'document_sequence',
	'shortName' => 'document_sequence',
	'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' => 'document_sequence',
	'afterAddDetail' => 'document_sequence',
	'detailsBadgeColor' => '6b8e23',
	'sql' => 'SELECT
	id,
	company_id,
	branch_id,
	sequence_code,
	prefix_text,
	suffix_text,
	next_no,
	padding_length,
	reset_rule,
	last_reset_date,
	status,
	updated_at
FROM
	document_sequence',
	'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' => 'document_sequence' 
		),
		'company_id' => array(
			'name' => 'company_id',
			'goodName' => 'company_id',
			'strField' => 'company_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'company_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'company',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'company_uuid' 
				) 
			),
			'tableName' => 'document_sequence',
			'viewLinkTable' => 'company',
			'viewLinkLookup' => true 
		),
		'branch_id' => array(
			'name' => 'branch_id',
			'goodName' => 'branch_id',
			'strField' => 'branch_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'branch_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'branch',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'branch_uuid' 
				) 
			),
			'tableName' => 'document_sequence',
			'viewLinkTable' => 'branch',
			'viewLinkLookup' => true 
		),
		'sequence_code' => array(
			'name' => 'sequence_code',
			'goodName' => 'sequence_code',
			'strField' => 'sequence_code',
			'index' => 4,
			'sqlExpression' => 'sequence_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'prefix_text' => array(
			'name' => 'prefix_text',
			'goodName' => 'prefix_text',
			'strField' => 'prefix_text',
			'index' => 5,
			'sqlExpression' => 'prefix_text',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'suffix_text' => array(
			'name' => 'suffix_text',
			'goodName' => 'suffix_text',
			'strField' => 'suffix_text',
			'index' => 6,
			'sqlExpression' => 'suffix_text',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'next_no' => array(
			'name' => 'next_no',
			'goodName' => 'next_no',
			'strField' => 'next_no',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'next_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'padding_length' => array(
			'name' => 'padding_length',
			'goodName' => 'padding_length',
			'strField' => 'padding_length',
			'index' => 8,
			'type' => 2,
			'sqlExpression' => 'padding_length',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'reset_rule' => array(
			'name' => 'reset_rule',
			'goodName' => 'reset_rule',
			'strField' => 'reset_rule',
			'index' => 9,
			'sqlExpression' => 'reset_rule',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'last_reset_date' => array(
			'name' => 'last_reset_date',
			'goodName' => 'last_reset_date',
			'strField' => 'last_reset_date',
			'index' => 10,
			'type' => 7,
			'sqlExpression' => 'last_reset_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 11,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'document_sequence' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 12,
			'type' => 135,
			'sqlExpression' => 'updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'document_sequence' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'company',
			'detailsKeys' => array( 
				'company_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'branch',
			'detailsKeys' => array( 
				'branch_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	company_id,
	branch_id,
	sequence_code,
	prefix_text,
	suffix_text,
	next_no,
	padding_length,
	reset_rule,
	last_reset_date,
	status,
	updated_at
FROM
	document_sequence',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'company_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'company_id' 
				),
				'encrypted' => false,
				'columnName' => 'company_id' 
			),
			array(
				'sql' => 'branch_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'branch_id' 
				),
				'encrypted' => false,
				'columnName' => 'branch_id' 
			),
			array(
				'sql' => 'sequence_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'sequence_code' 
				),
				'encrypted' => false,
				'columnName' => 'sequence_code' 
			),
			array(
				'sql' => 'prefix_text',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'prefix_text' 
				),
				'encrypted' => false,
				'columnName' => 'prefix_text' 
			),
			array(
				'sql' => 'suffix_text',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'suffix_text' 
				),
				'encrypted' => false,
				'columnName' => 'suffix_text' 
			),
			array(
				'sql' => 'next_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'next_no' 
				),
				'encrypted' => false,
				'columnName' => 'next_no' 
			),
			array(
				'sql' => 'padding_length',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'padding_length' 
				),
				'encrypted' => false,
				'columnName' => 'padding_length' 
			),
			array(
				'sql' => 'reset_rule',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'reset_rule' 
				),
				'encrypted' => false,
				'columnName' => 'reset_rule' 
			),
			array(
				'sql' => 'last_reset_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'last_reset_date' 
				),
				'encrypted' => false,
				'columnName' => 'last_reset_date' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'updated_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'document_sequence',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'document_sequence',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'document_sequence',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'company_id',
						'branch_id',
						'sequence_code',
						'prefix_text',
						'suffix_text',
						'next_no',
						'padding_length',
						'reset_rule',
						'last_reset_date',
						'status',
						'updated_at' 
					),
					'name' => 'document_sequence' 
				),
				'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,
	company_id,
	branch_id,
	sequence_code,
	prefix_text,
	suffix_text,
	next_no,
	padding_length,
	reset_rule,
	last_reset_date,
	status,
	updated_at',
		'fromListSql' => 'FROM
	document_sequence',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'document_sequence',
	'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',
			'company_id',
			'branch_id',
			'sequence_code',
			'prefix_text',
			'suffix_text',
			'next_no',
			'padding_length',
			'reset_rule',
			'last_reset_date',
			'status',
			'updated_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'company_id',
			'branch_id',
			'sequence_code',
			'prefix_text',
			'suffix_text',
			'next_no',
			'padding_length',
			'reset_rule',
			'last_reset_date',
			'status',
			'updated_at' 
		) 
	),
	'connId' => 'conn1',
	'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['document_sequence'] = array(
	'tableCaption' => 'Document Sequence',
	'fieldLabels' => array(
		'id' => 'Id',
		'company_id' => 'Company Id',
		'branch_id' => 'Branch Id',
		'sequence_code' => 'Sequence Code',
		'prefix_text' => 'Prefix Text',
		'suffix_text' => 'Suffix Text',
		'next_no' => 'Next No',
		'padding_length' => 'Padding Length',
		'reset_rule' => 'Reset Rule',
		'last_reset_date' => 'Last Reset Date',
		'status' => 'Status',
		'updated_at' => 'Updated At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'company_id' => '',
		'branch_id' => '',
		'sequence_code' => '',
		'prefix_text' => '',
		'suffix_text' => '',
		'next_no' => '',
		'padding_length' => '',
		'reset_rule' => '',
		'last_reset_date' => '',
		'status' => '',
		'updated_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'company_id' => '',
		'branch_id' => '',
		'sequence_code' => '',
		'prefix_text' => '',
		'suffix_text' => '',
		'next_no' => '',
		'padding_length' => '',
		'reset_rule' => '',
		'last_reset_date' => '',
		'status' => '',
		'updated_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>