//----------------------------------------------------------------------------------------------------
function display_type ($type, $typename, $from, $to, $begin, $end, $compare, $convert,
- &$dec, &$pdec, &$rep, $dimension=0, $dimension2=0, $drilldown, $path_to_root)
+ $dimension, $dimension2, $drilldown)
{
- global $levelptr, $k;
+ global $path_to_root, $levelptr, $k;
$code_per_balance = 0;
$code_acc_balance = 0;
while ($accounttype=db_fetch($result))
{
$totals_arr = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end,
- $compare, $convert, $dec, $pdec, $rep, $dimension, $dimension2, $drilldown, $path_to_root);
+ $compare, $convert, $dimension, $dimension2, $drilldown);
$per_balance_total += $totals_arr[0];
$acc_balance_total += $totals_arr[1];
}
else
$drilldown = 0; // Root level
- $dec = 0;
- $pdec = user_percent_dec();
-
if ($compare == 0 || $compare == 2)
{
$end = $to;
if (!$drilldown) //Root Level
{
- $parent = -1;
- $classper = 0.0;
- $classacc = 0.0;
$salesper = 0.0;
$salesacc = 0.0;
//Get Account groups/types under this group/type
$typeresult = get_account_types(false, $class['cid'], -1);
+ $k = 0; // row color
while ($accounttype=db_fetch($typeresult))
{
- $TypeTotal = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end, $compare, $convert,
- $dec, $pdec, $rep, $dimension, $dimension2, $drilldown, $path_to_root);
+ $TypeTotal = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end,
+ $compare, $convert, $dimension, $dimension2, $drilldown);
$class_per_total += $TypeTotal[0];
$class_acc_total += $TypeTotal[1];
table_section_title($_POST["AccGrp"] . " " . get_account_type_name($_POST["AccGrp"]),4);
echo $tableheader;
- $classtotal = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end, $compare, $convert,
- $dec, $pdec, $rep, $dimension, $dimension2, $drilldown, $path_to_root);
+ $classtotal = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end,
+ $compare, $convert, $dimension, $dimension2, $drilldown);
}
- end_table(1); // outer table
+ end_table(); // outer table
+ hyperlink_params($_SERVER['PHP_SELF'], _("Back"), "TransFromDate=". $from . "&TransToDate=" . $to . "&Dimension=" . $dimension . "&Dimension2=" . $dimension2);
div_end();
}
end_form();
-end_page();
+end_page(false, true);