mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Project fixes
This commit is contained in:
parent
8580676a11
commit
71591256cc
@ -75,7 +75,7 @@ class GenerateProjectChartData extends Job
|
|||||||
$sqlDate = $date->format('Y-m-d');
|
$sqlDate = $date->format('Y-m-d');
|
||||||
|
|
||||||
if (isset($taskMap[$sqlDate])) {
|
if (isset($taskMap[$sqlDate])) {
|
||||||
$total += $taskMap[$sqlDate] / 60 / 60;
|
$total += round($taskMap[$sqlDate] / 60 / 60, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
$records[] = $total;
|
$records[] = $total;
|
||||||
|
@ -158,6 +158,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadChart(data) {
|
function loadChart(data) {
|
||||||
|
if (! data.duration) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var ctx = document.getElementById('chart-canvas').getContext('2d');
|
var ctx = document.getElementById('chart-canvas').getContext('2d');
|
||||||
$('#chart-canvas').fadeIn();
|
$('#chart-canvas').fadeIn();
|
||||||
window.myChart = new Chart(ctx, {
|
window.myChart = new Chart(ctx, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user