<?php
global $runnerTableSettings;
$runnerTableSettings['approval_instance'] = array(
	'name' => 'approval_instance',
	'shortName' => 'approval_instance',
	'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' => 'approval_instance',
	'afterAddDetail' => 'approval_instance',
	'detailsBadgeColor' => 'e07878',
	'sql' => 'SELECT
	id,
	workflow_id,
	company_id,
	transaction_type,
	transaction_id,
	transaction_no,
	transaction_amount,
	current_step_no,
	approval_status,
	submitted_by_platform_user_id,
	submitted_at,
	completed_at
FROM
	approval_instance',
	'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' => 'approval_instance' 
		),
		'workflow_id' => array(
			'name' => 'workflow_id',
			'goodName' => 'workflow_id',
			'strField' => 'workflow_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'workflow_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'approval_workflow',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'workflow_code' 
				) 
			),
			'tableName' => 'approval_instance',
			'viewLinkTable' => 'approval_workflow',
			'viewLinkLookup' => true 
		),
		'company_id' => array(
			'name' => 'company_id',
			'goodName' => 'company_id',
			'strField' => 'company_id',
			'index' => 3,
			'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' => 'approval_instance',
			'viewLinkTable' => 'company',
			'viewLinkLookup' => true 
		),
		'transaction_type' => array(
			'name' => 'transaction_type',
			'goodName' => 'transaction_type',
			'strField' => 'transaction_type',
			'index' => 4,
			'sqlExpression' => 'transaction_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'transaction_id' => array(
			'name' => 'transaction_id',
			'goodName' => 'transaction_id',
			'strField' => 'transaction_id',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'transaction_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'transaction_no' => array(
			'name' => 'transaction_no',
			'goodName' => 'transaction_no',
			'strField' => 'transaction_no',
			'index' => 6,
			'sqlExpression' => 'transaction_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'transaction_amount' => array(
			'name' => 'transaction_amount',
			'goodName' => 'transaction_amount',
			'strField' => 'transaction_amount',
			'index' => 7,
			'type' => 14,
			'sqlExpression' => 'transaction_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'current_step_no' => array(
			'name' => 'current_step_no',
			'goodName' => 'current_step_no',
			'strField' => 'current_step_no',
			'index' => 8,
			'type' => 3,
			'sqlExpression' => 'current_step_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'approval_status' => array(
			'name' => 'approval_status',
			'goodName' => 'approval_status',
			'strField' => 'approval_status',
			'index' => 9,
			'sqlExpression' => 'approval_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'submitted_by_platform_user_id' => array(
			'name' => 'submitted_by_platform_user_id',
			'goodName' => 'submitted_by_platform_user_id',
			'strField' => 'submitted_by_platform_user_id',
			'index' => 10,
			'type' => 3,
			'sqlExpression' => 'submitted_by_platform_user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'submitted_at' => array(
			'name' => 'submitted_at',
			'goodName' => 'submitted_at',
			'strField' => 'submitted_at',
			'index' => 11,
			'type' => 135,
			'sqlExpression' => 'submitted_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'approval_instance' 
		),
		'completed_at' => array(
			'name' => 'completed_at',
			'goodName' => 'completed_at',
			'strField' => 'completed_at',
			'index' => 12,
			'type' => 135,
			'sqlExpression' => 'completed_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'approval_instance' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'company',
			'detailsKeys' => array( 
				'company_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'approval_workflow',
			'detailsKeys' => array( 
				'workflow_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'detailsTables' => array( 
		'approval_action' 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	workflow_id,
	company_id,
	transaction_type,
	transaction_id,
	transaction_no,
	transaction_amount,
	current_step_no,
	approval_status,
	submitted_by_platform_user_id,
	submitted_at,
	completed_at
FROM
	approval_instance',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'workflow_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'workflow_id' 
				),
				'encrypted' => false,
				'columnName' => 'workflow_id' 
			),
			array(
				'sql' => 'company_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'company_id' 
				),
				'encrypted' => false,
				'columnName' => 'company_id' 
			),
			array(
				'sql' => 'transaction_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'transaction_type' 
				),
				'encrypted' => false,
				'columnName' => 'transaction_type' 
			),
			array(
				'sql' => 'transaction_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'transaction_id' 
				),
				'encrypted' => false,
				'columnName' => 'transaction_id' 
			),
			array(
				'sql' => 'transaction_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'transaction_no' 
				),
				'encrypted' => false,
				'columnName' => 'transaction_no' 
			),
			array(
				'sql' => 'transaction_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'transaction_amount' 
				),
				'encrypted' => false,
				'columnName' => 'transaction_amount' 
			),
			array(
				'sql' => 'current_step_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'current_step_no' 
				),
				'encrypted' => false,
				'columnName' => 'current_step_no' 
			),
			array(
				'sql' => 'approval_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'approval_status' 
				),
				'encrypted' => false,
				'columnName' => 'approval_status' 
			),
			array(
				'sql' => 'submitted_by_platform_user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'submitted_by_platform_user_id' 
				),
				'encrypted' => false,
				'columnName' => 'submitted_by_platform_user_id' 
			),
			array(
				'sql' => 'submitted_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'submitted_at' 
				),
				'encrypted' => false,
				'columnName' => 'submitted_at' 
			),
			array(
				'sql' => 'completed_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_instance',
					'name' => 'completed_at' 
				),
				'encrypted' => false,
				'columnName' => 'completed_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'approval_instance',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'approval_instance',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'workflow_id',
						'company_id',
						'transaction_type',
						'transaction_id',
						'transaction_no',
						'transaction_amount',
						'current_step_no',
						'approval_status',
						'submitted_by_platform_user_id',
						'submitted_at',
						'completed_at' 
					),
					'name' => 'approval_instance' 
				),
				'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,
	workflow_id,
	company_id,
	transaction_type,
	transaction_id,
	transaction_no,
	transaction_amount,
	current_step_no,
	approval_status,
	submitted_by_platform_user_id,
	submitted_at,
	completed_at',
		'fromListSql' => 'FROM
	approval_instance',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'approval_instance',
	'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( 
			'id',
			'workflow_id',
			'company_id',
			'transaction_type',
			'transaction_id',
			'transaction_no',
			'transaction_amount',
			'current_step_no',
			'approval_status',
			'submitted_by_platform_user_id',
			'submitted_at',
			'completed_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'workflow_id',
			'company_id',
			'transaction_type',
			'transaction_id',
			'transaction_no',
			'transaction_amount',
			'current_step_no',
			'approval_status',
			'submitted_by_platform_user_id',
			'submitted_at',
			'completed_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['approval_instance'] = array(
	'tableCaption' => 'Approval Instance',
	'fieldLabels' => array(
		'id' => 'Id',
		'workflow_id' => 'Workflow Id',
		'company_id' => 'Company Id',
		'transaction_type' => 'Transaction Type',
		'transaction_id' => 'Transaction Id',
		'transaction_no' => 'Transaction No',
		'transaction_amount' => 'Transaction Amount',
		'current_step_no' => 'Current Step No',
		'approval_status' => 'Approval Status',
		'submitted_by_platform_user_id' => 'Submitted By Platform User Id',
		'submitted_at' => 'Submitted At',
		'completed_at' => 'Completed At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'workflow_id' => '',
		'company_id' => '',
		'transaction_type' => '',
		'transaction_id' => '',
		'transaction_no' => '',
		'transaction_amount' => '',
		'current_step_no' => '',
		'approval_status' => '',
		'submitted_by_platform_user_id' => '',
		'submitted_at' => '',
		'completed_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'workflow_id' => '',
		'company_id' => '',
		'transaction_type' => '',
		'transaction_id' => '',
		'transaction_no' => '',
		'transaction_amount' => '',
		'current_step_no' => '',
		'approval_status' => '',
		'submitted_by_platform_user_id' => '',
		'submitted_at' => '',
		'completed_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>