View Single Post
  #19  
Old 24th September 2010, 18:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

Ok. I read trough the sources of the class again and it might be that we have to add the fields in the .lis.php file of that list too (the file where the list fields are defined). Add there this code:

Code:
$liste["item"][] = array(	'field'		=> "total_valor_comissionado",
							'datatype'	=> "VARCHAR",
							'formtype'	=> "TEXT",
							'op'		=> "like",
							'prefix'	=> "%",
							'suffix'	=> "%",
							'width'		=> "",
							'value'		=> "");

$liste["item"][] = array(	'field'		=> "total_valor_nao_comissionado",
							'datatype'	=> "VARCHAR",
							'formtype'	=> "TEXT",
							'op'		=> "like",
							'prefix'	=> "%",
							'suffix'	=> "%",
							'width'		=> "",
							'value'		=> "");
and then change in your code the lines:

$app->tpl->setVar('total_valor_comissionado', $soma);
$app->tpl->setVar('total_valor_nao_comissionado', $soma_nao);


with:

$rec['total_valor_comissionado'] = $soma;
$rec['total_valor_nao_comissionado'] = $soma_nao;
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote