[0004964] Balance Sheet Drilldown, Profit and Loss Drilldown: Fixed invalid navigatio...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 26 Sep 2020 23:28:34 +0000 (01:28 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 26 Sep 2020 23:28:34 +0000 (01:28 +0200)
gl/inquiry/balance_sheet.php
gl/inquiry/profit_loss.php

index e2cd107536108864a5b4e74d0b9724d2eb9545d5..6479ff83380ac228617143d780fa4002d639ffc3 100644 (file)
@@ -138,9 +138,9 @@ function display_balance_sheet()
 {
        global $path_to_root;
        
-       $from = begin_fiscalyear();
        $to = $_POST['TransToDate'];
-       
+       $from = get_fiscalyear_begin_for_date($to);
+
        if (!isset($_POST['Dimension']))
                $_POST['Dimension'] = 0;
        if (!isset($_POST['Dimension2']))
@@ -252,7 +252,8 @@ function display_balance_sheet()
                        $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();
 }
 
@@ -266,5 +267,5 @@ display_balance_sheet();
 
 end_form();
 
-end_page();
+end_page(false, true);
 
index 1543bddc1ba102842f8f071865bf58660b0e72b0..801fb6aa0495efcd60cfc504e82d5ab3703d723a 100644 (file)
@@ -323,7 +323,8 @@ function display_profit_and_loss($compare)
        }
                
 
-       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();
 }
 
@@ -337,5 +338,5 @@ display_profit_and_loss(get_post('Compare'));
 
 end_form();
 
-end_page();
+end_page(false, true);