Minor change to balance sheet/profit and loss drilldown
[fa-stable.git] / gl / inquiry / balance_sheet.php
index c08183d74d5a47d915d628087795c1b60ce03af9..776171abe6f26bc923635cc6b971715bc895e706 100644 (file)
@@ -97,7 +97,12 @@ function display_type ($type, $typename, $from, $to, $convert, $drilldown, $path
                        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