mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-05 11:10:16 -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');
|
||||
|
||||
if (isset($taskMap[$sqlDate])) {
|
||||
$total += $taskMap[$sqlDate] / 60 / 60;
|
||||
$total += round($taskMap[$sqlDate] / 60 / 60, 2);
|
||||
}
|
||||
|
||||
$records[] = $total;
|
||||
|
@ -158,6 +158,9 @@
|
||||
}
|
||||
|
||||
function loadChart(data) {
|
||||
if (! data.duration) {
|
||||
return;
|
||||
}
|
||||
var ctx = document.getElementById('chart-canvas').getContext('2d');
|
||||
$('#chart-canvas').fadeIn();
|
||||
window.myChart = new Chart(ctx, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user