amount_cell(($acctstotal + $typestotal) * $convert);
end_row();
}
- elseif ($drilldown && $type != $_POST["AccGrp"])
+ //START Patch#1 : Display only direct child types
+ $acctype1 = get_account_type($type);
+ $parent1 = $acctype1["parent"];
+ if ($drilldown && $parent1 == $_POST["AccGrp"])
+ //END Patch#2
+ //elseif ($drilldown && $type != $_POST["AccGrp"])
{
$url = "<a href='$path_to_root/gl/inquiry/balance_sheet.php?TransFromDate="
. $from . "&TransToDate=" . $to
function inquiry_controls()
{
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
date_cells(_("As at:"), 'TransToDate');
submit_cells('Show',_("Show"),'','', 'default');
end_table();
function display_balance_sheet()
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$from = begin_fiscalyear();
$to = $_POST['TransToDate'];
div_start('balance_tbl');
- start_table("width=30% $table_style");
+ start_table(TABLESTYLE, "width=30%");
if (!$drilldown) //Root Level
{