The on-screen reports Trial Balance and P&L Drilldown should follow the printed repor...
[fa-stable.git] / gl / inquiry / profit_loss.php
index 351fc3d738003fe07a29de95ae3b8d59986de8f2..3e7a26f4ff55a58b199df4970a62bc6c013a6fd8 100644 (file)
@@ -160,7 +160,12 @@ function inquiry_controls()
        $dim = get_company_pref('use_dimension');
     start_table(TABLESTYLE_NOBORDER);
     
-    date_cells(_("From:"), 'TransFromDate', '', null, -30);
+       $date = today();
+       if (!isset($_POST['TransFromDate']))
+               $_POST['TransFromDate'] = begin_month($date);
+       if (!isset($_POST['TransToDate']))
+               $_POST['TransToDate'] = end_month($date);
+    date_cells(_("From:"), 'TransFromDate');
        date_cells(_("To:"), 'TransToDate');
        
        //Compare Combo