<?php
global $runnerTableSettings;
$runnerTableSettings['tb_markups'] = array(
	'name' => 'tb_markups',
	'shortName' => 'tb_markups',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditAction' => 0,
	'afterEditDetails' => 'tb_markups',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_markups',
	'detailsBadgeColor' => '7b68ee',
	'sql' => 'SELECT
	mkpID,
	Mlucro,
	ofiscal,
	desp_financ,
	comissoes,
	((Mlucro + ofiscal + desp_financ + comissoes)/(100-(Mlucro + ofiscal + desp_financ + comissoes))+1) AS cmkp
FROM
	tb_markups
',
	'keyFields' => array( 
		'mkpID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'mkpID' => array(
			'name' => 'mkpID',
			'goodName' => 'mkpID',
			'strField' => 'mkpID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'mkpID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_markups' 
		),
		'Mlucro' => array(
			'name' => 'Mlucro',
			'goodName' => 'Mlucro',
			'strField' => 'Mlucro',
			'index' => 2,
			'type' => 14,
			'sqlExpression' => 'Mlucro',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_markups' 
		),
		'ofiscal' => array(
			'name' => 'ofiscal',
			'goodName' => 'ofiscal',
			'strField' => 'ofiscal',
			'index' => 3,
			'type' => 14,
			'sqlExpression' => 'ofiscal',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_markups' 
		),
		'desp_financ' => array(
			'name' => 'desp_financ',
			'goodName' => 'desp_financ',
			'strField' => 'desp_financ',
			'index' => 4,
			'type' => 14,
			'sqlExpression' => 'desp_financ',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_markups' 
		),
		'comissoes' => array(
			'name' => 'comissoes',
			'goodName' => 'comissoes',
			'strField' => 'comissoes',
			'index' => 5,
			'type' => 14,
			'sqlExpression' => 'comissoes',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_markups' 
		),
		'cmkp' => array(
			'name' => 'cmkp',
			'goodName' => 'cmkp',
			'strField' => 'cmkp',
			'index' => 6,
			'type' => 14,
			'sqlExpression' => '((Mlucro + ofiscal + desp_financ + comissoes)/(100-(Mlucro + ofiscal + desp_financ + comissoes))+1)',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number',
					'numberFractionalDigits' => 4 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	mkpID,
	Mlucro,
	ofiscal,
	desp_financ,
	comissoes,
	((Mlucro + ofiscal + desp_financ + comissoes)/(100-(Mlucro + ofiscal + desp_financ + comissoes))+1) AS cmkp
FROM
	tb_markups
',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'mkpID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_markups',
					'name' => 'mkpID' 
				),
				'encrypted' => false,
				'columnName' => 'mkpID' 
			),
			array(
				'sql' => 'Mlucro',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_markups',
					'name' => 'Mlucro' 
				),
				'encrypted' => false,
				'columnName' => 'Mlucro' 
			),
			array(
				'sql' => 'ofiscal',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_markups',
					'name' => 'ofiscal' 
				),
				'encrypted' => false,
				'columnName' => 'ofiscal' 
			),
			array(
				'sql' => 'desp_financ',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_markups',
					'name' => 'desp_financ' 
				),
				'encrypted' => false,
				'columnName' => 'desp_financ' 
			),
			array(
				'sql' => 'comissoes',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_markups',
					'name' => 'comissoes' 
				),
				'encrypted' => false,
				'columnName' => 'comissoes' 
			),
			array(
				'sql' => '((Mlucro + ofiscal + desp_financ + comissoes)/(100-(Mlucro + ofiscal + desp_financ + comissoes))+1)',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => 'cmkp',
				'expression' => array(
					'sql' => '((Mlucro + ofiscal + desp_financ + comissoes)/(100-(Mlucro + ofiscal + desp_financ + comissoes))+1)',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'cmkp' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_markups',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_markups',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'mkpID',
						'Mlucro',
						'ofiscal',
						'desp_financ',
						'comissoes' 
					),
					'name' => 'tb_markups' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'mkpID,
	Mlucro,
	ofiscal,
	desp_financ,
	comissoes,
	((Mlucro + ofiscal + desp_financ + comissoes)/(100-(Mlucro + ofiscal + desp_financ + comissoes))+1) AS cmkp',
		'fromListSql' => 'FROM
	tb_markups',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_markups',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'mkpID',
			'Mlucro',
			'ofiscal',
			'desp_financ',
			'comissoes',
			'cmkp' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'mkpID',
			'Mlucro',
			'ofiscal',
			'desp_financ',
			'comissoes',
			'cmkp' 
		) 
	),
	'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['tb_markups'] = array(
	'tableCaption' => 'Tb Markups',
	'fieldLabels' => array(
		'mkpID' => 'Mkp ID',
		'Mlucro' => 'Mlucro',
		'ofiscal' => 'Ofiscal',
		'desp_financ' => 'Desp Financ',
		'comissoes' => 'Comissoes',
		'cmkp' => 'Cmkp' 
	),
	'fieldTooltips' => array(
		'mkpID' => '',
		'Mlucro' => '',
		'ofiscal' => '',
		'desp_financ' => '',
		'comissoes' => '',
		'cmkp' => '' 
	),
	'fieldPlaceholders' => array(
		'mkpID' => '',
		'Mlucro' => '',
		'ofiscal' => '',
		'desp_financ' => '',
		'comissoes' => '',
		'cmkp' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>