ERROR Report GL Trans (show warning sign with huge transactions). Fixed by Itronics.
[fa-stable.git] / reporting / includes / reports_classes.inc
index 38973243e0de386d9c8aaa47c03636c943d5bda3..a3d48618767d77075034ef1d5015fd2f9622db71 100644 (file)
@@ -100,7 +100,7 @@ class BoxReports
                                                . "<form method='POST' action='$action' target='_blank'>\n";
                                        $st_params .= submit('Rep'.$report->id,  
                                                _("Display: ") . access_string($report->name, true),
-                                               false, '', $SysPrefs->pdf_debug ? false : 'default popup') . hidden('REP_ID', $report->id, false).'<br><br>';
+                                               false, '', $SysPrefs->pdf_debug ? false : 'default process popup') . hidden('REP_ID', $report->id, false).'<br><br>';
                                        $st_params .= $this->getOptions($report->get_controls(), $report->id);
                                        $st_params .= "\n<input type=hidden name='Class' value=".$cur_class.">"
                                                ."\n</form></td></tr></table>\n";
@@ -170,7 +170,9 @@ class BoxReports
        {
                global $path_to_root, $SysPrefs,
                        $type_shortcuts;
-               $day_range = (isset($SysPrefs->max_days_in_docs) ? $SysPrefs->max_days_in_docs : 180);
+               $day_range = get_company_pref("max_days_in_docs");
+               if (!$day_range)
+                       $day_range = 180;
                $st = '';
                        switch ($type)
                        {
@@ -251,7 +253,7 @@ class BoxReports
 
                                case 'GRAPHIC':
                                        $sel = array(_("No Graphics"), _("Vertical bars"), _("Horizontal bars"), 
-                                                               _("Dots"), _("Lines"), _("Pie"), _("Donut"));
+                                                               _("Dots"), _("Lines"), _("Pie"), _("Donut"), _("Half Donut"), _("Splines"));
                                        return array_selector($name, null, $sel);
 
                                case 'SYS_TYPES':