<?php
global $runnerTableSettings;
$runnerTableSettings['accounting_period'] = array(
	'name' => 'accounting_period',
	'shortName' => 'accounting_period',
	'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' => 'accounting_period',
	'afterAddDetail' => 'accounting_period',
	'detailsBadgeColor' => 'dc143c',
	'sql' => 'SELECT
	id,
	fiscal_year_id,
	period_no,
	period_name,
	date_from,
	date_to,
	period_status,
	closed_at,
	closed_by_platform_user_id
FROM
	accounting_period',
	'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' => 'accounting_period' 
		),
		'fiscal_year_id' => array(
			'name' => 'fiscal_year_id',
			'goodName' => 'fiscal_year_id',
			'strField' => 'fiscal_year_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'fiscal_year_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'fiscal_year',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'fiscal_year_code' 
				) 
			),
			'tableName' => 'accounting_period',
			'viewLinkTable' => 'fiscal_year',
			'viewLinkLookup' => true 
		),
		'period_no' => array(
			'name' => 'period_no',
			'goodName' => 'period_no',
			'strField' => 'period_no',
			'index' => 3,
			'type' => 2,
			'sqlExpression' => 'period_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'accounting_period' 
		),
		'period_name' => array(
			'name' => 'period_name',
			'goodName' => 'period_name',
			'strField' => 'period_name',
			'index' => 4,
			'sqlExpression' => 'period_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'accounting_period' 
		),
		'date_from' => array(
			'name' => 'date_from',
			'goodName' => 'date_from',
			'strField' => 'date_from',
			'index' => 5,
			'type' => 7,
			'sqlExpression' => 'date_from',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'accounting_period' 
		),
		'date_to' => array(
			'name' => 'date_to',
			'goodName' => 'date_to',
			'strField' => 'date_to',
			'index' => 6,
			'type' => 7,
			'sqlExpression' => 'date_to',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'accounting_period' 
		),
		'period_status' => array(
			'name' => 'period_status',
			'goodName' => 'period_status',
			'strField' => 'period_status',
			'index' => 7,
			'sqlExpression' => 'period_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'accounting_period' 
		),
		'closed_at' => array(
			'name' => 'closed_at',
			'goodName' => 'closed_at',
			'strField' => 'closed_at',
			'index' => 8,
			'type' => 135,
			'sqlExpression' => 'closed_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'accounting_period' 
		),
		'closed_by_platform_user_id' => array(
			'name' => 'closed_by_platform_user_id',
			'goodName' => 'closed_by_platform_user_id',
			'strField' => 'closed_by_platform_user_id',
			'index' => 9,
			'type' => 3,
			'sqlExpression' => 'closed_by_platform_user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'accounting_period' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'fiscal_year',
			'detailsKeys' => array( 
				'fiscal_year_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	fiscal_year_id,
	period_no,
	period_name,
	date_from,
	date_to,
	period_status,
	closed_at,
	closed_by_platform_user_id
FROM
	accounting_period',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'fiscal_year_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'fiscal_year_id' 
				),
				'encrypted' => false,
				'columnName' => 'fiscal_year_id' 
			),
			array(
				'sql' => 'period_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'period_no' 
				),
				'encrypted' => false,
				'columnName' => 'period_no' 
			),
			array(
				'sql' => 'period_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'period_name' 
				),
				'encrypted' => false,
				'columnName' => 'period_name' 
			),
			array(
				'sql' => 'date_from',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'date_from' 
				),
				'encrypted' => false,
				'columnName' => 'date_from' 
			),
			array(
				'sql' => 'date_to',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'date_to' 
				),
				'encrypted' => false,
				'columnName' => 'date_to' 
			),
			array(
				'sql' => 'period_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'period_status' 
				),
				'encrypted' => false,
				'columnName' => 'period_status' 
			),
			array(
				'sql' => 'closed_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'closed_at' 
				),
				'encrypted' => false,
				'columnName' => 'closed_at' 
			),
			array(
				'sql' => 'closed_by_platform_user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'accounting_period',
					'name' => 'closed_by_platform_user_id' 
				),
				'encrypted' => false,
				'columnName' => 'closed_by_platform_user_id' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'accounting_period',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'accounting_period',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'fiscal_year_id',
						'period_no',
						'period_name',
						'date_from',
						'date_to',
						'period_status',
						'closed_at',
						'closed_by_platform_user_id' 
					),
					'name' => 'accounting_period' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	fiscal_year_id,
	period_no,
	period_name,
	date_from,
	date_to,
	period_status,
	closed_at,
	closed_by_platform_user_id',
		'fromListSql' => 'FROM
	accounting_period',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'accounting_period',
	'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',
			'fiscal_year_id',
			'period_no',
			'period_name',
			'date_from',
			'date_to',
			'period_status',
			'closed_at',
			'closed_by_platform_user_id' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'fiscal_year_id',
			'period_no',
			'period_name',
			'date_from',
			'date_to',
			'period_status',
			'closed_at',
			'closed_by_platform_user_id' 
		) 
	),
	'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['accounting_period'] = array(
	'tableCaption' => 'Accounting Period',
	'fieldLabels' => array(
		'id' => 'Id',
		'fiscal_year_id' => 'Fiscal Year Id',
		'period_no' => 'Period No',
		'period_name' => 'Period Name',
		'date_from' => 'Date From',
		'date_to' => 'Date To',
		'period_status' => 'Period Status',
		'closed_at' => 'Closed At',
		'closed_by_platform_user_id' => 'Closed By Platform User Id' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'fiscal_year_id' => '',
		'period_no' => '',
		'period_name' => '',
		'date_from' => '',
		'date_to' => '',
		'period_status' => '',
		'closed_at' => '',
		'closed_by_platform_user_id' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'fiscal_year_id' => '',
		'period_no' => '',
		'period_name' => '',
		'date_from' => '',
		'date_to' => '',
		'period_status' => '',
		'closed_at' => '',
		'closed_by_platform_user_id' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>