Set default Show Also Allocated to Yes in aged reports, just like on screen transactions.
authorJoe <unknown>
Fri, 19 Sep 2014 07:06:11 +0000 (09:06 +0200)
committerJoe <unknown>
Fri, 19 Sep 2014 07:06:11 +0000 (09:06 +0200)
reporting/includes/reports_classes.inc

index e773f57a257ee4bcbd91eb86cfa4cf4faac597cd..d9076691cc04b0059c9dfb09968fa4ed2e31c15a 100644 (file)
@@ -137,6 +137,9 @@ class BoxReports
                                if ($ctrl) break;
                        }
                        if ($ctrl == '') {
+                               if (($id == 102 || $id == 202) && $cnt == 3) // set default Show Also Allocated to Yes in aged reports 2014-09-19 Joe Hunt
+                                       $_POST['PARAM_'.$cnt] = 1;
+                               
                                if (isset($_COOKIE['select'][$id][$cnt])) // saved parameters 2010-10-06 Joe Hunt
                                        $_POST['PARAM_'.$cnt] = $_COOKIE['select'][$id][$cnt];
                                $ctrl = $this->get_ctrl('PARAM_'.$cnt, $type);