Cleaning up new Dashboard.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 16 Jun 2021 09:53:15 +0000 (11:53 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 16 Jun 2021 09:53:15 +0000 (11:53 +0200)
includes/dashboard.inc
reporting/includes/reports_classes.inc

index 56f69a56dc1e87c276b1ca470788e65fba175fc6..43eb29df02c6438eea9fd3d7512f5f3560b1075e 100644 (file)
@@ -735,7 +735,7 @@ function gl_week_performance($today, $width="33", $weeks=4)
                        GROUP BY week_name ORDER BY week_name DESC LIMIT 0, $weeks) b 
                GROUP BY week_name ORDER BY week_name ASC";
        $result = db_query($sql, "Transactions could not be calculated");
-       $title = _("Last $weeks weeks Performance");
+       $title = sprintf(_("Last %s weeks Performance"), $weeks);
        check_page_security('SA_GLANALYTIC');
        $week_names = $sales = $costs = $results = array();
        while ($myrow = db_fetch($result))
@@ -774,7 +774,7 @@ function gl_month_performance($today, $width="33", $months=5)
                        GROUP BY month_name ORDER BY month_name DESC LIMIT 0, $months) b 
                GROUP BY month_name ORDER BY month_name ASC";
        $result = db_query($sql, "Transactions could not be calculated");
-       $title = _("Last $months Months Performance");
+       $title = sprintf(_("Last %s Months Performance"), $months);
        check_page_security('SA_GLANALYTIC');
        $month_names = $sales = $costs = $results = array();
        while ($myrow = db_fetch($result))
@@ -964,7 +964,7 @@ function cash_flow($today)
                $date[$i] = $y.$sep.$m;
                $total[$i] = round($total[$i]);
        }
-       $title = _("Last $months Months Cash Flow");
+       $title = sprintf(_("Last %s Months Cash Flow"), $months);
        check_page_security('SA_BANKREP');
        $pg->setLabels($date);
        $pg->addSerie(_('Balances'), $total, false, true);
index c4a476ed66cec4cba15da90253a87fc8dc91b875..bb24fb2d4d29bb73b6dc95c2132b0398cd6150ce 100644 (file)
@@ -253,7 +253,7 @@ class BoxReports
 
                                case 'GRAPHIC':
                                        $sel = array(_("No Graphics"), _("Vertical bars"), _("Horizontal bars"), 
-                                                               _("Dots"), _("Lines"), _("Pie"), _("Donut"), _("Half donut"), _("Spline"));
+                                                               _("Dots"), _("Lines"), _("Pie"), _("Donut"), _("Half Donut"), _("Splines"));
                                        return array_selector($name, null, $sel);
 
                                case 'SYS_TYPES':