Rerun of last commit. A minor bug was detected.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 20 Dec 2015 15:40:59 +0000 (16:40 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 20 Dec 2015 15:40:59 +0000 (16:40 +0100)
includes/dashboard.inc

index 4b552cfb33d0677649c01e2a12264fdfe4695c6d..b4b847d496f88e3cb71a143e7543eb7e9a4d7394 100644 (file)
@@ -413,8 +413,8 @@ function gl_performance($today, $width="33", $weeks=5)
        while ($myrow = db_fetch($result))
        {
                $pg->x[$i] = $myrow['week_name']; 
-               $pg->y[$i] = abs($myrow['sales']);
-               $pg->z[$i] = abs($myrow['costs']);
+               $pg->y[$i] = $myrow['sales'];
+               $pg->z[$i] = $myrow['costs'];
                $i++;
        }       
        $pg->x = array_reverse($pg->x);