Hi,
Average / Total percent are not formatted correctly. Had a peek into the code and I see that in GetTotals (commonfunctions.php), there is no 'FORMAT_PERCENT' entry.
Updating the GetTotals as follows:
// return Totals string
function GetTotals($value, $stype, $iNumberOfRows,$sFormat)
{
if($stype=="AVERAGE")
{
if($iNumberOfRows)
$value=$value/$iNumberOfRows;
else
return "";
}
if($sFormat == FORMAT_CURRENCY)
$value = format_currency($value);
else if($sFormat == FORMAT_NUMBER)
$value = format_number($value);
*else if($sFormat == FORMAT_PERCENT)
$value = format_number($value100)."%"; **
if($stype=="COUNT")
return $iNumberOfRows;
if($stype=="TOTAL")
return $value;
if($stype=="AVERAGE")
return $value;
return "";
}
Possible to have this fixed in a next build?
Tnx