Added message when no file is selected for view or download.
[fa-stable.git] / gl / inquiry / balance_sheet.php
index 488f63347cbd3d2f25f5225d262df9304fb535de..a550ebc8e67c8c77f3799d4f342b5706d8eb07bb 100644 (file)
@@ -24,7 +24,7 @@ $js = "";
 if ($use_date_picker)
        $js = get_js_date_picker();
 
-page(_($help_context = "Balance Sheet"), false, false, "", $js);
+page(_($help_context = "Balance Sheet Drilldown"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------------------
 // Ajax updates
@@ -169,7 +169,7 @@ function print_balance_sheet()
                        {
                                for ( ; $level >= 0, $typename[$level] != ''; $level--) 
                                {
-                                       if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0)
+                                       if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0 || $closeclass)
                                        {       
                                        
                                                $url = "<a href='$path_to_root/gl/inquiry/balance_sheet.php?TransFromDate=" 
@@ -278,7 +278,7 @@ function print_balance_sheet()
                {
                        for ( ; $level >= 0, $typename[$level] != ''; $level--) 
                        {
-                               if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0)
+                               if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0 || $closeclass)
                                {
                                        //Inside drill down, no hyperlink
                                        if (isset($_POST['AccGrp']) && (strlen($_POST['AccGrp']) > 0) && ($acctype[$level] == $_POST['AccGrp']))