X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fbalance_sheet.php;h=6479ff83380ac228617143d780fa4002d639ffc3;hb=0a6988eadb9d779a9c49c79772c1c2a3e19b6b05;hp=01dc3c1e328c1c9db42636bfb9352b2131a15b18;hpb=78fe8cb8f56510ba3f6a1720b207a33b5828e071;p=fa-stable.git diff --git a/gl/inquiry/balance_sheet.php b/gl/inquiry/balance_sheet.php index 01dc3c1e..6479ff83 100644 --- a/gl/inquiry/balance_sheet.php +++ b/gl/inquiry/balance_sheet.php @@ -21,7 +21,7 @@ include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/gl/includes/gl_db.inc"); $js = ""; -if ($use_date_picker) +if (user_use_date_picker()) $js = get_js_date_picker(); page(_($help_context = "Balance Sheet Drilldown"), false, false, "", $js); @@ -47,9 +47,9 @@ if (isset($_GET["AccGrp"])) //---------------------------------------------------------------------------------------------------- -function display_type ($type, $typename, $from, $to, $convert, $dimension, $dimension2, $drilldown, $path_to_root) +function display_type ($type, $typename, $from, $to, $convert, $dimension, $dimension2, $drilldown) { - global $levelptr, $k; + global $path_to_root, $levelptr, $k; $acctstotal = 0; $typestotal = 0; @@ -86,7 +86,7 @@ function display_type ($type, $typename, $from, $to, $convert, $dimension, $dime while ($accounttype=db_fetch($result)) { $typestotal += display_type($accounttype["id"], $accounttype["name"], $from, $to, - $convert, $dimension, $dimension2, $drilldown, $path_to_root); + $convert, $dimension, $dimension2, $drilldown); } //Display Type Summary if total is != 0 @@ -104,7 +104,6 @@ function display_type ($type, $typename, $from, $to, $convert, $dimension, $dime $parent1 = $acctype1["parent"]; if ($drilldown && $parent1 == $_POST["AccGrp"]) //END Patch#2 - //elseif ($drilldown && $type != $_POST["AccGrp"]) { $url = "